Project

General

Profile

Bug #17090

rgw: swift api return ``204 No Content`` when update metadata for an account with wrong accounts ACLs

Added by wei qiaomiao almost 4 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Normal
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

In swift environment, the api return 400 Bad Request when update metadata for an account with wrong accounts ACLs :

curl -i -H "X-Auth-Token: $OS_AUTH_TOKEN" "$OS_STORAGE_URL" -X POST -H "X-Account-Access-Control: bla"

HTTP/1.1 400 Bad Request
Content-Length: 76
Content-Type: text/plain; charset=UTF-8
X-Trans-Id: txead49a31990d40c6900d2-0057ba6a5b
Date: Mon, 22 Aug 2016 02:58:35 GMT

X-Account-Access-Control invalid: Syntax error in input ('bla')

Input: bla

but in rgw environment, it return 204 No Content :

curl -i -H "X-Auth-Token: $OS_AUTH_TOKEN" "$OS_STORAGE_URL" -X POST -H "X-Account-Access-Control: bla"
HTTP/1.1 204 No Content
X-Trans-Id: tx00000000000000000000a-0057ba6f20-455e5-default
Content-Type: text/plain; charset=utf-8
Date: Mon, 22 Aug 2016 03:18:56 GMT

History

#1 Updated by Radoslaw Zarzynski almost 4 years ago

  • Status changed from New to In Progress

#2 Updated by Yehuda Sadeh almost 4 years ago

  • Status changed from In Progress to Fix Under Review
  • Assignee set to Orit Wasserman

#3 Updated by Orit Wasserman almost 4 years ago

  • Status changed from Fix Under Review to Resolved

Also available in: Atom PDF