The error message for Unauthorised actions is poorly formatted
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
/>↵↵↵"
title:
}
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.
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=).