Project

General

Profile

Actions

Feature #10696

open

RGW swift API: Setting x-account-meta-quota-bytes for an account returns "405 Method Not Allowed"

Added by Ahmad Faheem about 9 years ago. Updated about 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Q/A
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

Steps to reproduce:

1. curl -i "https://10.20.20.15:80/swift/v1" -X POST -H "x-auth-token: 7ac8302d386145b2b9b7c8f976998292" -H "x-account-meta-quota-bytes: 1024"

HTTP/1.1 405 Method Not Allowed
Date: Thu, 29 Jan 2015 06:11:45 GMT
Server: Apache/2.4.7 (Ubuntu)
Accept-Ranges: bytes
Content-Length: 16
Content-Type: application/octet-stream
Connection: close

In swift same operation is successful.
1. curl -i "http://10.0.2.15:8080/v1/AUTH_ed6387c1207242268d958132af905494" -X POST -H "X-Account-Meta-Quota-Bytes: 20" -H 'X-Auth-Token: e377f10986134318bcae6abddc563cfc'

HTTP/1.1 204 No Content
Content-Length: 0
Content-Type: text/html; charset=UTF-8
X-Trans-Id: tx84d4491d7b624e02b695d-0054c974bc
Date: Wed, 28 Jan 2015 23:46:04 GMT

2. curl -i "http://10.0.2.15:8080/v1/AUTH_ed6387c1207242268d958132af905494" -X HEAD -H 'X-Auth-Token: e377f10986134318bcae6abddc563cfc'

HTTP/1.1 204 No Content
Content-Length: 0
X-Account-Container-Count: 1
X-Account-Object-Count: 0
X-Account-Storage-Policy-Policy-0-Bytes-Used: 0
X-Account-Storage-Policy-Policy-0-Container-Count: 1
X-Timestamp: 1422488403.24869
X-Account-Storage-Policy-Policy-0-Object-Count: 0
X-Account-Bytes-Used: 0
X-Account-Meta-Quota-Bytes: 20
Content-Type: text/plain; charset=utf-8
Accept-Ranges: bytes
x-account-project-domain-id: default
X-Trans-Id: tx102d44c36ba1497f88748-0054c974c1
Date: Wed, 28 Jan 2015 23:46:09 GMT

Actions #1

Updated by Yehuda Sadeh about 9 years ago

  • Tracker changed from Bug to Feature
Actions #2

Updated by Abhishek Dixit about 9 years ago

I have started working on this.

Actions

Also available in: Atom PDF