basho/riak-java-client — pull request #64 by chrisumbel (2011-10-11 19:27:56+00:00)
Title: Links on documents with keys with slashes were failing to save

- 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