Project

General

Profile

Actions

Bug #10708

open

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

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:
Regression:
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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')

Actions #1

Updated by Abhishek Dixit about 9 years ago

I have started working on this.

Actions

Also available in: Atom PDF