swift client psudeo-folder upload syntax can't create the container
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-swiftclient |
Fix Released
|
Undecided
|
James Nzomo |
Bug Description
I recently learned about swiftclients pseudo-folder directory-marker support.
It doesn't work with automatic container creation on upload.
vagrant@saio:~$ swift list
vagrant@saio:~$ echo "test" > obj
vagrant@saio:~$ swift upload container/folder obj
Warning: failed to create container 'container/folder': 404 Not Found: <html><h1>Not Found</h1><p>The resource could not be found.<
Object PUT failed: http://
vagrant@saio:~$ swift post container
vagrant@saio:~$ swift upload container/folder obj
obj
vagrant@saio:~$ swift list container
folder
folder/obj
vagrant@saio:~$ swift stat container folder
Account: AUTH_test
Container: container
Object: folder
Content Type: application/
Content Length: 0
Last Modified: Sat, 25 Jul 2015 08:05:19 GMT
ETag: d41d8cd98f00b20
Accept-Ranges: bytes
X-Timestamp: 1437811518.50778
X-Trans-Id: tx9cc6c26887cd4
summary: |
- swift client psudeo-directory can't create container + swift client psudeo-folder upload syntax can't create the container |
Changed in python-swiftclient: | |
assignee: | nobody → James Nzomo (moje) |
Changed in python-swiftclient: | |
status: | New → In Progress |
Probably only two options here:- force container creation OR reject the arg for the slashes within it. /bugs.launchpad .net/python- swiftclient/ +bug/1432734)
Most other use cases seem to go with the latter, but implementing the former sorts this and (the currently abandoned) bug 1432734 (https:/