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

Purge files with delimiters in object key fails #5822

Closed
cyberduck opened this issue Mar 22, 2011 · 6 comments
Closed

Purge files with delimiters in object key fails #5822

cyberduck opened this issue Mar 22, 2011 · 6 comments
Assignees
Labels
bug cloudfiles Rackspace CloudFiles high priority thirdparty Issue caused by third party
Milestone

Comments

@cyberduck
Copy link
Collaborator

Tcwebb created the issue

If you have containers more than 2 levels deep in Rackspace cloud files, the URL in the DELETE request for invalidating the CDN's object is improperly formatted. The /s are escaped as %2F.
To recreate the problem. Run CD, login to rackspace, create an image or file thats several 'folders' deep, then attempt to invalidate the CDN's cache. It will throw exception. Take a look at the request's URL -- its escaped improperly for "/"'s...
We were able to successfully formulate a request by manually reformatting the improperly escaped character.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

I think this is a bug with Rackspace. The API should accept a key that is fully URI encoded. I will discuss this with Rackspace.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Patch in 2129da61bf496241e61e47df1a522410c52ebdc3.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

In ac2705d.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

I receive now the error Bad Request. from the Rackspace servers with the change applied.

DELETE /v1/MossoCloudFS_c3fe4d48-19b5-4040-abbd-90381795f84d/sudo/India%20-%20Andaman%20Islands%20-%20Nepal%20-%20China%202010/IMG_2157.JPG HTTP/1.1
X-Auth-Token: XXXXXXXXXXXXXXXXXXXXXXXXXX
Host: cdn.clouddrive.com
Connection: Keep-Alive
User-Agent: Cyberduck/4.0.2 (Mac OS X/10.6.7) (i386)
HTTP/1.1 400 Bad Request
Date: Fri, 25 Mar 2011 09:37:50 GMT
Server: Apache
X-Akam-Est-Time: -1
X-Akam-Result-Code: 322
Content-Length: 0
Connection: close
Content-Type: text/plain; charset=UTF-8

@cyberduck
Copy link
Collaborator Author

@dkocher commented

I suppose the issue will be fixed by Rackspace. Currently purging fails for any object key.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Replying to [comment:8 dkocher]:

I suppose the issue will be fixed by Rackspace. Currently purging fails for any object key.

This was reported to be an issue with Rackspace/Akamai to be fixed on the server side.

@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 cloudfiles Rackspace CloudFiles high priority thirdparty Issue caused by third party
Projects
None yet
Development

No branches or pull requests

2 participants