| Summary: | [rhcs-2.y] rgw: crash when client post object with null conditions | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Ceph Storage | Reporter: | Yehuda Sadeh <yehuda> | ||||||
| Component: | RGW | Assignee: | Matt Benjamin (redhat) <mbenjamin> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | shilpa <smanjara> | ||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 1.3.3 | CC: | 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: | |||||||
| Bug Depends On: | 1389193 | ||||||||
| Bug Blocks: | |||||||||
| Attachments: |
|
||||||||
Created attachment 1212574 [details]
updated test script
need to modify access and secret keys, make sure specified bucket exists
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>
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 |
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: