Repository navigation
Fix handling/url-encoding of container names - #469
Merged
Merged
Conversation
Fixes issue #422.
Contributor
Author
dan-f
reviewed
Dec 7, 2016
| }) | ||
| }) | ||
|
|
||
| it('should be able to access new url-named container', (done) => { |
Contributor
There was a problem hiding this comment.
Do we not clean up after every single test? I would have expected these two tests to be the same test, and for the resource /post-tests/https%3A%2F%2Fexample.com%2Fpage/ not to exist in the scope of other tests in this describe block.
Contributor
Author
There was a problem hiding this comment.
Sounds like we clean up after each describe() block.
This was referenced Dec 7, 2016
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes issue #422.
Currently, if you
POSTto/with a slug ofhttp://csarven.ca/foo(to create a directory with that name), it succeeds with a responseLocationheader of/http%3A%2F%2Fcsarven.ca%2Ffoo.But what is physically created on the system is directory
http:with subdirectorycsarven.cawith filefoo. Even if you uri-encode the slug beforePOSTing, the same thing happens, because the current behavior is to url-decode the slug for some reason, on the server.The fixed behavior is now:
Similarly, retrieval of the created container works: