Skip to content

Links on documents with keys with slashes were failing to save#64

Closed
chrisumbel wants to merge 1 commit intobasho:masterfrom
chrisumbel:8860222ecb6f95973f4470963452c211d1817166
Closed

Links on documents with keys with slashes were failing to save#64
chrisumbel wants to merge 1 commit intobasho:masterfrom
chrisumbel:8860222ecb6f95973f4470963452c211d1817166

Conversation

@chrisumbel
Copy link
Copy Markdown
Contributor

  • changed getBasePathFromHttpMethod to operate on the raw path rather than decoded path

getBasePathFromHttpMethod was using URI.getPath which decodes the url before returning it. if the document's key had a forward slash this would cause only a portion of the key to be removed from the end of the path before determining it's base. that in turn caused the bucket name of the original document to be left on the base i.e.

/riak/owning_doc_bucket/linked_doc_bucket/key

getRawPath does not decode the path so the link is determined correctly i.e.

/riak/linked_doc_bucket/key

russelldb added a commit that referenced this pull request Oct 11, 2011
@russelldb
Copy link
Copy Markdown
Contributor

I was just doing the tagging for 1.0, this is in, many thanks.

@russelldb russelldb closed this Oct 11, 2011
@chrisumbel
Copy link
Copy Markdown
Contributor Author

awesome, thanks. keep up the good work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants