Project

General

Profile

Bug #10708

RGW swift API: POSTing multipart/form-data along with form data does not create object.

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

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
02/01/2015
Due date:
% Done:

0%

Source:
Q/A
Tags:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

Steps to reproduce:

1. swift post container
2. swift post -H "x-account-meta-temp-url-key: secret"
3. keystone token-get
4. Now run this python program as following:
python post_object_formpost.py "https://10.20.20.15:80/swift/v1" container test secret 98de77368811432db1880cd2bbb88a0c
5. 4th step is giving output:
({'status': '404', 'content-length': '9', 'accept-ranges': 'bytes', 'server': 'Apache/2.4.7 (Ubuntu)', 'connection': 'close', 'date': 'Sun, 01 Feb 2015 17:52:35 GMT', 'access-control-allow-origin': '*', 'content-type': 'application/octet-stream'}, 'NoSuchKey')

6. On swift 4th step is giving output:
({'date': 'Fri, 30 Jan 2015 01:00:39 GMT', 'status': '201', 'content-length': '11', 'content-type': 'text/plain', 'x-trans-id': 'tx514490d9cb2943caa3bd0-0054cad7b7'}, '201 Created')

History

#1 Updated by Abhishek Dixit about 4 years ago

I have started working on this.

Also available in: Atom PDF