Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renaming of placeholder folders generates a 404 error #8262

Closed
cyberduck opened this issue Oct 16, 2014 · 1 comment
Closed

Renaming of placeholder folders generates a 404 error #8262

cyberduck opened this issue Oct 16, 2014 · 1 comment
Assignees
Labels
bug fixed high priority openstack OpenStack Swift Protocol Implementation
Milestone

Comments

@cyberduck
Copy link
Collaborator

d3e9237 created the issue

When connected to an OpenStack swift container (e.g. Rackspace Cloud Files), if you attempt to rename a 'folder' (e.g. a folder within the path of a file rather than the container itself), the rename operation fails.
In the background, a 404 error is generated as it appears the DELETE operation is incorrectly encoding the trailing forward slash (%2F).

Looking at a fiddler trace when running the application, attempting to rename a folder called TEST in a container called container-name:

DELETE https://storage101.lon3.clouddrive.com/v1/MossoCloudFS_12345678/container-name/Test%2F HTTP/1.1
X-Auth-Token: XXXREMOVEDXXX
Host: storage101.lon3.clouddrive.com
Connection: Keep-Alive
User-Agent: Cyberduck/4.5.2 (15058) (Windows NT (unknown)/6.2) (x86)
Accept-Encoding: gzip,deflate

This generates a 404:

HTTP/1.1 404 Not Found
Content-Length: 70
Content-Type: text/html; charset=UTF-8
X-Trans-Id: txcdc517b58d234eb0Fc18e-00543f754blon3
Date: Thu, 16 Oct 2014 07:35:39 GMT



<html><h1>Not Found</h1><p>The resource could not be found.</p></html>

If I modify the request in Fiddler and change the request URL for the delete from:

DELETE https://storage101.lon3.clouddrive.com/v1/MossoCloudFS_12345678/container-name/Test%2F HTTP/1.1

to:

DELETE https://storage101.lon3.clouddrive.com/v1/MossoCloudFS_12345678/container-name/Test/ HTTP/1.1

the operation completes.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

In 9dd2f0c.

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug fixed high priority openstack OpenStack Swift Protocol Implementation
Projects
None yet
Development

No branches or pull requests

2 participants