Project

General

Profile

Actions

Bug #6088

closed

rgw: When uploading via POST specifying text instead of file formdata input field, a subsequent GET fails with 500 error

Added by Brian Andrus over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
-
% Done:

0%

Source:
Support
Tags:
Backport:
dumpling, cuttlefish, bobtail
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Specific text from customer:

When uploading via POST if user specifies the "file" formdata input field as "text" instead of "file," RGW responds with a 200-range code, but upon a subsequent GET request to list objects in the bucket, RGW responds with a 500. After about 24 hours the problem goes away and the bucket can be listed again with no sign of the attempted erroneous upload.

Provided steps to reproduce:

  1. generate the signed S3 policy document and signature using the script in internal support ticket #466.
  2. Install Google Chrome Extension POSTMAN
  3. list an existing bucket with GET
  4. upload to the bucket using "file" as a text input field (replace your bucket name, "AWSAccessKeyId" value with your bucket's S3 Access Key, "policy" and "signature" values with the values generated in step #1)
  5. attempt to list the bucket again (repeat step #3), observe HTTP 500 error
Actions #1

Updated by Brian Andrus over 10 years ago

Version used: 0.56.6-15-g8c6a912

Actions #2

Updated by Ian Colle over 10 years ago

  • Priority changed from Normal to High
  • Source changed from other to Support
Actions #3

Updated by Yehuda Sadeh over 10 years ago

Bug confirmed on latest. From what I can tell cache entry for bucket gets corrupted.

Actions #4

Updated by Yehuda Sadeh over 10 years ago

  • Status changed from New to Fix Under Review
  • Backport set to dumpling, cuttlefish, bobtail
Actions #5

Updated by Yehuda Sadeh over 10 years ago

  • Assignee changed from Yehuda Sadeh to Josh Durgin
Actions #6

Updated by Josh Durgin over 10 years ago

  • Status changed from Fix Under Review to 4
  • Assignee changed from Josh Durgin to Yehuda Sadeh

Looks good to me, is there an associated s3-tests branch as well?

Actions #7

Updated by Yehuda Sadeh over 10 years ago

The bug reproduction was manual, not sure how easy it'd be creating a boto based test for that.

Actions #8

Updated by Yehuda Sadeh over 10 years ago

  • Status changed from 4 to Resolved

Fixed, commit:c8ec532fadc0df36e4b265fe20a2ff3e35319744. Also cherry-picked to bobtail, cuttlefish, and dumpling.

Actions

Also available in: Atom PDF