Comment 0 for bug 2065642

Revision history for this message
Kottur (skottur) wrote : s3 list objects returns account:user instead of access key

s3 list objects returns account:user instead of access key

s3cmd info s3://bucket/object

s3://bucket/object (object):
   File size: 0
   Last mod: Tue, 14 May 2024 01:48:16 GMT
   MIME type: binary/octet-stream
   Storage: STANDARD
   MD5 sum: d41d8cd98f00b204e9800998ecf8427e
   SSE: none
   Policy: none
   CORS: none
   ACL: ovh_staging_s3:ovh_staging-user1: FULL_CONTROL

Here is the functional test dump

ipdb> break /var/swift/test/functional/s3api/test_bucket.py:50
Breakpoint 1 at /var/swift/test/functional/s3api/test_bucket.py:50
ipdb> cont
Resuming program, press Ctrl-C to relaunch debugger.
> /var/swift/test/functional/s3api/test_bucket.py(50)_validate_object_listing()
     48 self.assertNotIn('Owner', obj)
     49 elif tf.cluster_info['s3api'].get('s3_acl'):
1--> 50 self.assertEqual(obj['Owner']['ID'], self.access_key)
     51 self.assertEqual(obj['Owner']['DisplayName'], self.access_key)
     52 else:

ipdb> print(obj)
{'Key': 'object', 'LastModified': datetime.datetime(2024, 5, 14, 1, 48, 16, tzinfo=tzlocal()), 'ETag': '"d41d8cd98f00b204e9800998ecf8427e"', 'Size': 0, 'StorageClass': 'STANDARD', 'Owner': {'DisplayName': 'ovh_staging_s3:ovh_staging-user1', 'ID': 'ovh_staging_s3:ovh_staging-user1'}}

Expecting access key in the test, and also botot3 response schema returns access key for the ID.