Cannot download, delete, or stat paths with . or .. as components

Bug #2051978 reported by Tim Burke
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-swiftclient
New
Undecided
Unassigned

Bug Description

Related to https://bugs.launchpad.net/python-swiftclient/+bug/1541018

There are object names swiftclient simply cannot handle. You may create such a name with curl:

vagrant@saio:~/swift$ `swift auth`
vagrant@saio:~/swift$ curl -H x-auth-token:$OS_AUTH_TOKEN $OS_STORAGE_URL/test -X PUT
vagrant@saio:~/swift$ curl -H x-auth-token:$OS_AUTH_TOKEN $OS_STORAGE_URL/test/%2E/obj -T tox.ini
vagrant@saio:~/swift$ curl -H x-auth-token:$OS_AUTH_TOKEN $OS_STORAGE_URL/test
./obj

And swiftclient can see it in listings:

vagrant@saio:~/swift$ swift list test
./obj

But that's about it:

vagrant@saio:~/swift$ swift download test
Object 'test/./obj' not found
vagrant@saio:~/swift$ swift delete test
Error Deleting: test/./obj: Object DELETE failed: https://saio/v1/AUTH_test/test/obj 404 Not Found [first 60 chars of response] b'<html><h1>Not Found</h1><p>The resource could not be found.<' (txn: tx064aacd1b18d4f048e4c7-0065bbec9b)
Error Deleting: test: Container DELETE failed: https://saio/v1/AUTH_test/test 409 Conflict [first 60 chars of response] b'<html><h1>Conflict</h1><p>There was a conflict when trying t' (txn: txb8d183b757a94d9c8b892-0065bbec9b)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.