Oneview version check logs wrong exception when credentials are wrong

Bug #1603928 reported by lokesh s
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Python client for HP OneView
Fix Released
Undecided
Unassigned

Bug Description

When credentials are wrong response data will look like
{u'errorSource': None, u'recommendedActions': [u'Check the request URI, then resend the request.'], u'nestedErrors': [], u'errorCode': u'GENERIC_HTTP_403', u'details': u'You are not allowed to access the requested resource.', u'message': u'Forbidden', u'data': {}}

As it is not checked whether it has version in the data or not. It always through .IncompatibleOneViewAPIVersion.

lokesh s (lokesh-s)
Changed in python-oneviewclient:
assignee: nobody → lokesh s (lokesh-s)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-oneviewclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/343550

Changed in python-oneviewclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-oneviewclient (master)

Reviewed: https://review.openstack.org/343550
Committed: https://git.openstack.org/cgit/openstack/python-oneviewclient/commit/?id=8c976721cac606ec4d841ab225a2b59e1452f6b3
Submitter: Jenkins
Branch: master

commit 8c976721cac606ec4d841ab225a2b59e1452f6b3
Author: Lokesh S <email address hidden>
Date: Mon Jul 18 10:19:37 2016 +0000

    Raise Not Authorized Exception when connection request is forbidden

    Currently it logs IncompatibleOneViewAPIVersion which confuses
    users to assume it is version issue. It can be wrong request
    call.

    Change-Id: I0bd69a9173d7318bb9e06a38ba54c043f9198b30
    Closes-Bug: 1603928

Changed in python-oneviewclient:
status: In Progress → Fix Released
Changed in python-oneviewclient:
assignee: lokesh s (lokesh-s) → nissrine saidi (nissaidi)
assignee: nissrine saidi (nissaidi) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.