← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1466872] [NEW] v3 - Ambiguous error when no request body is provided for updating service

 

Public bug reported:

Request
~~~~~~~
PATCH /v3/services/42a4f85b93b5445c9c05c1482b25e5f3 HTTP/1.1
Host: {snip}:5000
X-Auth-Token: {snip}

Response
~~~~~~~~
HTTP/1.1 400 Bad Request
Date: Fri, 19 Jun 2015 13:40:54 GMT
Server: Apache/2.4.7 (Ubuntu)
Vary: X-Auth-Token
x-openstack-request-id: req-07d8def5-7ce0-4777-a05f-4159a60c5919
Content-Length: 115
Connection: close
Content-Type: application/json

{"error": {"message": "update_service() takes exactly 4 arguments (3
given)", "code": 400, "title": "Bad Request"}}

---

As an end-user, I have no idea what this error message means - nor what
I am expected to do to fix it.

Also, I don't think we should expose Python errors through the API to
the end-user, who might not have Python experience.

** Affects: keystone
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1466872

Title:
  v3 - Ambiguous error when no request body is provided for updating
  service

Status in OpenStack Identity (Keystone):
  New

Bug description:
  Request
  ~~~~~~~
  PATCH /v3/services/42a4f85b93b5445c9c05c1482b25e5f3 HTTP/1.1
  Host: {snip}:5000
  X-Auth-Token: {snip}

  Response
  ~~~~~~~~
  HTTP/1.1 400 Bad Request
  Date: Fri, 19 Jun 2015 13:40:54 GMT
  Server: Apache/2.4.7 (Ubuntu)
  Vary: X-Auth-Token
  x-openstack-request-id: req-07d8def5-7ce0-4777-a05f-4159a60c5919
  Content-Length: 115
  Connection: close
  Content-Type: application/json

  {"error": {"message": "update_service() takes exactly 4 arguments (3
  given)", "code": 400, "title": "Bad Request"}}

  ---

  As an end-user, I have no idea what this error message means - nor
  what I am expected to do to fix it.

  Also, I don't think we should expose Python errors through the API to
  the end-user, who might not have Python experience.

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1466872/+subscriptions


Follow ups

References