Comment 2 for bug 915151

Revision history for this message
Mark McLoughlin (markmc) wrote : Re: Incorrect error "message" string returned for negative API request scenario

A blueprint was filed about this, but was later closed:

  https://blueprints.launchpad.net/nova/+spec/no-malformed-request-url

  Currently, "Malformed request url" error message is used if and only if tenant id specified in the
  request URL in not the same that tenant to which the token belongs (nova/api/openstack/wsgi.py).
  This message seems to be confusing since the URL itself is correct. Imagine a user that has roles in
  tenant A and tenant B and tries to execute a request for tenant B using a token for tenant A - he
  will get "Malformed request url" when problem actually can be with the token.

  It could be better if another message was returned, e.g. "Incorrect project id" or "Project ids from
  URL and credentials differ".