can not upload object name that starts with slash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-swiftclient |
New
|
Undecided
|
Unassigned |
Bug Description
I can't seem to get swiftclient to upload an object-name that starts with slash from the command line.
ubuntu@saio:~$ swift upload test blah --object-name "/blah"
blah
ubuntu@saio:~$ swift list test
blah
ubuntu@saio:~$ swift upload test blah --object-name "//blah"
blah
ubuntu@saio:~$ swift list test
blah
ubuntu@saio:~$ swift stat -v test
Auth Token: AUTH_tkbbacdcc6
Read ACL:
Write ACL:
Sync To:
Sync Key:
X-
X-Openstack-
... but it's a totally reasonable object name
ubuntu@saio:~$ curl -H 'x-auth-token: AUTH_tkbbacdcc6
ubuntu@saio:~$ swift list test
/blah
blah
an --object-name that contains a slash, or ends with slash is fine.
I can't think of a reasonable way to get the cli to craft an object name that starts with a slash from a path on disk - so it may only be an issue with the --object-name option.
I haven't tried to demonstrate the issue with the service, but I wouldn't imagine it'd be a problem with the Connection class.