← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1250228] Re: Forbidden update to image member says 'image' instead of 'image member' in error message

 

** Changed in: glance
       Status: Fix Committed => Fix Released

** Changed in: glance
    Milestone: None => icehouse-2

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

Title:
  Forbidden update to image member says 'image' instead of 'image
  member' in error message

Status in OpenStack Image Registry and Delivery Service (Glance):
  Fix Released

Bug description:

  Incorrectly says 'image' instead of 'image member'

  curl -i -X PUT -H "Content-Type: application/json" -H "X-Auth-Token:
  $AUTH_TOKEN" https://localhost/v2/images/ef4570bf-2e26-4921-810a-
  5f8499e9822f/members/5855250 -d '{"status": "accepted"}'

  HTTP/1.1 403 Forbidden
  Content-Type: text/html;charset=UTF-8
  Via: 1.1 Repose (Repose/2.12)
  Content-Length: 177
  Date: Fri, 08 Nov 2013 19:13:37 GMT
  x-openstack-request-id: req-11c02e0c-d5bd-4f17-ab03-b474b071b3f0
  Server: Jetty(8.0.y.z-SNAPSHOT)
  <html>
  <head>
  <title>403 Forbidden</title>
  </head>
  <body>
  <h1>403 Forbidden</h1>
  You are not permitted to modify 'status' on this image.<br /><br /> <------------------this should say 'image member'


  The issue is in ImmutableMemberProxy in glance/api/authorization.py
  where it uses the  _immutable_attr function.

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