yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #62942
[Bug 1679517] [NEW] The error message for Unauthorised actions is poorly formatted
Public bug reported:
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.
** Affects: glance
Importance: Undecided
Status: New
** Description changed:
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"
+ 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.
+ 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.
+ 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 changed:
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
- />↵↵↵"
+ 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.
+ 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.
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1679517
Title:
The error message for Unauthorised actions is poorly formatted
Status in Glance:
New
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1679517/+subscriptions