s3api logging causes 500 when setting ACLs with empty ID
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
In Progress
|
Undecided
|
Unassigned |
Bug Description
Seen when testing locally:
Dec 13 17:13:05 saio proxy-server: __str__ returned non-string (type NoneType):
Traceback (most recent call last):
File "/vagrant/
resp = self.handle_
File "/vagrant/
res = handler(req)
File "/vagrant/
req.
File "/vagrant/
resp = self.acl_
File "/vagrant/
return getattr(ah, method)(app)
File "/vagrant/
'Grant %s %s permission on the bucket /%s' %
TypeError: __str__ returned non-string (type NoneType)
Trouble comes down to how Users get str()ed: https:/
The display_name passed to the constructor (apparently) may be None, causing __str__ to return None, causing the TypeError.
Fix proposed to branch: master /review. opendev. org/c/openstack /swift/ +/869401
Review: https:/