Forbidden update to image member says 'image' instead of 'image member' in error message
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Wishlist
|
Arnaud Legendre |
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:/
HTTP/1.1 403 Forbidden
Content-Type: text/html;
Via: 1.1 Repose (Repose/2.12)
Content-Length: 177
Date: Fri, 08 Nov 2013 19:13:37 GMT
x-openstack-
Server: Jetty(8.
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<h1>403 Forbidden</h1>
You are not permitted to modify 'status' on this image.<br /><br /> <------
The issue is in ImmutableMember
Changed in glance: | |
assignee: | nobody → Arnaud Legendre (arnaudleg) |
Changed in glance: | |
milestone: | none → icehouse-2 |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | icehouse-2 → 2014.1 |
Good catch, i think the root cause is image and image member is sharing the same code to implement the immutable attributes. See https:/ /github. com/openstack/ glance/ blob/master/ glance/ api/authorizati on.py#L185