The error message for Unauthorised actions is poorly formatted

Bug #1679517 reported by Rob Cresswell
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
New
Undecided
Unassigned

Bug Description

The error message from the REST API for attempting an unauthorised action gives:

{
  code: "401 Unauthorized"
  message: "This server could not verify that you are authorized to access
            the document you requested. Either you supplied the wrong
            credentials (e.g., bad password), or your browser does not
            understand how to supply the credentials required.<br /><br
            />↵↵↵"
  title:"Unauthorized"
}

This is wrong for several reasons:

1) "401 Unauthorized" is not an error code, its an error code converted to a string and with the error name/title appended.

2) The error message contains "<br /><br />↵↵↵".

3) This part is unlikely to be fixed, but the error itself is not embedded in an error object as with Keystone and Neutron, so the consistency issue means a generic solution can't be used.

description: updated
description: updated
description: updated
Revision history for this message
Cyril Roelandt (cyril-roelandt) wrote :

How do you get this error? What steps should one follow in order to see this error message?

I cannot find any occurrences of "401 Unauthorized" in glance (see http://codesearch.openstack.org/?q=%22401%20Unauthorized%22&i=fosho&files=&repos=).

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.