Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 1387332

Summary: [rhcs-2.y] rgw: crash when client post object with null conditions
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Yehuda Sadeh <yehuda>
Component: RGWAssignee: Matt Benjamin (redhat) <mbenjamin>
Status: CLOSED ERRATA QA Contact: shilpa <smanjara>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.3.3CC: cbodley, ceph-eng-bugs, kbader, kdreyer, mbenjamin, owasserm, smanjara, sweil, tserlin, vakulkar
Target Milestone: rc   
Target Release: 2.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-10.2.3-12.el7cp Ubuntu: ceph_10.2.3-13redhat1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-22 19:24:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1389193    
Bug Blocks:    
Attachments:
Description Flags
reproduction script
none
updated test script none

Description Yehuda Sadeh 2016-10-20 16:17:23 UTC
Created attachment 1212566 [details]
reproduction script

Description of problem:

rgw crashes on POST object with null conditions.

Version-Release number of selected component (if applicable):


How reproducible:

Always


Steps to Reproduce:
1. Run the attached script

Actual results:

rgw crashes


Expected results:

rgw returns errors


Additional info:

Comment 2 Yehuda Sadeh 2016-10-20 16:58:36 UTC
Created attachment 1212574 [details]
updated test script

need to modify access and secret keys, make sure specified bucket exists

Comment 7 shilpa 2016-11-03 07:10:55 UTC
Tested on 10.2.3-12. The script fails with error without crashing. 

{'url': u'http://rgw1:80/bucket1', 'fields': {'policy': u'eyJjb25kaXRpb25zIjogW3t9LCB7ImJ1Y2tldCI6ICJidWNrNSJ9LCB7ImtleSI6ICJ0ZXN0c2lnbiJ9XSwgImV4cGlyYXRpb24iOiAiMjAxNi0xMS0wM1QwODowNzowNFoifQ==', 'AWSAccessKeyId': u'CLN3TEBE8V13342ZC9JW', 'key': 'testsign', 'signature': u'UjDkV0UjeO/Ur8rp2hythRG1XRA='}}
<?xml version="1.0" encoding="UTF-8"?><Error><Code>InvalidArgument</Code><Message>Failed to parse policy</Message><BucketName>bucket1</BucketName><RequestId>tx0000000000000000a5d6d-00581ae218-d383-us-east</RequestId><HostId>d383-us-east-us</HostId></Error>

Comment 9 errata-xmlrpc 2016-11-22 19:24:07 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2016-2816.html