Bug 1462322

Summary: [support] RHCS 2.2 -RGW - APACHE - SSL True - with special characters in filenames '111()' - boto.exception.S3ResponseError: S3ResponseError: 403 Forbidden
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vikhyat Umrao <vumrao>
Component: RGWAssignee: Marcus Watts <mwatts>
Status: CLOSED NOTABUG QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.2CC: cbodley, ceph-eng-bugs, kbader, mbenjamin, mhackett, owasserm, sweil, uboppana
Target Milestone: rc   
Target Release: 2.*   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-26 18:04:17 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:

Description Vikhyat Umrao 2017-06-16 17:48:50 UTC
Description of problem:
RHCS 2.2 -RGW - APACHE - SSL True - with special characters in filenames '111()' -  boto.exception.S3ResponseError: S3ResponseError: 403 Forbidden 

Version-Release number of selected component (if applicable):
Red Hat Ceph Storage 2.2

How reproducible:
100% customer environment 
Not able to reproduce in my test environment.


==

Traceback (most recent call last):
  File "test-boto.py", line 25, in <module>
    print new_key.exists()
  File "/usr/lib/python2.7/site-packages/boto/s3/key.py", line 539, in exists
    return bool(self.bucket.lookup(self.name, headers=headers))
  File "/usr/lib/python2.7/site-packages/boto/s3/bucket.py", line 143, in lookup
    return self.get_key(key_name, headers=headers)
  File "/usr/lib/python2.7/site-packages/boto/s3/bucket.py", line 193, in get_key
    key, resp = self._get_key_internal(key_name, headers, query_args_l)
  File "/usr/lib/python2.7/site-packages/boto/s3/bucket.py", line 231, in _get_key_internal
    response.status, response.reason, '')
boto.exception.S3ResponseError: S3ResponseError: 403 Forbidden

In RadosGW logs I see it like that:

2017-06-09 11:05:44.438266 7fd7d0435700  1 civetweb: 0x7fd8540065d0: 192.168.114.124 - - [09/Jun/2017:11:05:44 +0000] "HEAD /test-bucket/111() HTTP/1.1" 403 0 - Boto/2.39.0 Python/2.7.5 Linux/4.7.0-1.el7.wg.x86_64