Project

General

Profile

Actions

Bug #17090

closed

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

Added by wei qiaomiao over 7 years ago. Updated over 7 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 (v1):
Crash signature (v2):

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

Actions #1

Updated by Radoslaw Zarzynski over 7 years ago

  • Status changed from New to In Progress
Actions #2

Updated by Yehuda Sadeh over 7 years ago

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

Updated by Orit Wasserman over 7 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF