swiftclient object with beginning /
Bug #1412425 reported by
Christopher Bartz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-swiftclient |
Fix Released
|
High
|
Pradeep Kumar Singh |
Bug Description
Dear all,
I have observed an inconsistent behaviour while using the python swiftclient (2.3.1) . It is possible to upload a file with a beginning slash:
swift upload test /tmp/test
This will create a file called tmp/test in the container tmp. But,
swift download test /tmp/test
will try to download a file /tmp/test, which does not exist.
Changed in swift: | |
assignee: | nobody → Parantap (parantap) |
Changed in swift: | |
assignee: | Parantap (parantap) → pradeep kumar singh (pradeep-singh-u) |
affects: | swift → python-swiftclient |
Changed in python-swiftclient: | |
status: | In Progress → Fix Committed |
Changed in python-swiftclient: | |
milestone: | none → 2.5.0 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Which pre-existing behavior do you think we could change?
The filename is listed with from `swift list` as "tmp/test"
I'm not sure how much consistency we could really apply here, I don't think it'd be reasonable for download to save the file back into /tmp/test on the filesystem, unless maybe `swift download test tmp/test -o /tmp/test` was all you were looking for?
I think it's important to note that it *is* possible to upload file into swift as `/account/ container/ /tmp/test` if not straight forward with swiftclient...