Inappropriate WSGI exception mapping for HTTP Unathorized 401

Bug #1351296 reported by Denis M.
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Expired
Wishlist
Unassigned

Bug Description

This exception mapping says that HTTP 403 is a HTTP 401 which is completely wrong.

Example:
When regular user tries to access admin API endpoints Trove will raise H401 exception (Unauthorized), but user passed authorization.

This issue violates RFC 2616 (see http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html)

https://github.com/openstack/trove/blob/master/trove/common/wsgi.py#L316-L318

        webob.exc.HTTPUnauthorized: [
            exception.Forbidden,
            exception.SwiftAuthError,
        ],

webob has specific section for HTTP Forbidden exceptions.

Denis M. (dmakogon)
Changed in trove:
assignee: nobody → Denis M. (dmakogon)
status: New → Confirmed
Denis M. (dmakogon)
summary: - Inappropriate WSGI exception mapping
+ Inappropriate WSGI exception mapping for HTTP 401
summary: - Inappropriate WSGI exception mapping for HTTP 401
+ Inappropriate WSGI exception mapping for HTTP Unathorized 401
Denis M. (dmakogon)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (master)

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

Changed in trove:
status: Confirmed → In Progress
Changed in trove:
milestone: none → ongoing
importance: Undecided → Wishlist
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on trove (master)

Change abandoned by Denis M. (<email address hidden>) on branch: master
Review: https://review.openstack.org/111278

Amrith Kumar (amrith)
Changed in trove:
assignee: Denis M. (dmakogon) → nobody
milestone: ongoing → none
status: In Progress → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack DBaaS (Trove) because there has been no activity for 60 days.]

Changed in trove:
status: Incomplete → Expired
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.