Can keys have slashes?
john at rigelgroupllc.com
Mon Feb 22 17:52:58 EST 2010
Thanks Bryan. The link-walking syntax is nice, but the way Riak stores
data, with the REST interface and remembering content-type, it is a shame
that we can't directly use filesystem-like URLs to access data. It would
open up a lot of use cases without the added complexity of putting proxys in
front of Riak to rewrite URLs. A Rails "routes" type mechanism would be
Anyway, just my 2 cents, I really appreciate the work Basho has done on
Riak, and for letting us play with your toys.
On Mon, Feb 22, 2010 at 6:36 AM, Bryan Fink <bryan at basho.com> wrote:
> On Sun, Feb 21, 2010 at 9:23 PM, John Lynch <john at rigelgroupllc.com>
> > I have not been able to get Riak to accept slashes in keys (i.e.
> > "foo/bar"). If this were possible it would be nice to be able to simulate
> > (complete with css and image directories) directly out of Riak. Is such
> > thing possible?
> Hi, John. Riak, proper, can accept slashes in keys. However, the
> HTTP interface uses Webmachine's dispatcher, which considers slashes
> significant, and it also provides the ability to use link-walking URL
> syntax after the bucket and key. It also brings up the question of
> whether the URL "/raw/foo/bar/baz/quux" points to the "bar/baz/quux"
> object in the "foo" bucket or to the "quux" object in the
> "foo/bar/baz" bucket.
> The best way to use "slashes" in keys right now is to URL-encode them to
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the riak-users