couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Z├╝lke <>
Subject ID encoding inconsistencies
Date Wed, 24 Jun 2009 11:06:34 GMT

whilst playing around with some url encoding edge cases (for 
, I came across the following two issues:

a) for a document "foo" with attachment "bar/baz", both "foo/bar/baz"  
and "foo/bar%2Fbaz" work. I believe that only the latter should be  
possible as that would be consistent with other IDs (design documents,  
view names and document IDs)
b) if a design document contains a view with a slash, then calling "/ 
testdb/_design/lolcats/_view/all%2Fyour%2Fbase" works, while "/testdb/ 
_design/lolcats/_view/all/your/base" gives an HTTP 405 Method Not  
Allowed response instead of a 404 which I think would be correct and/ 
or consistent with the other cases where IDs are not found, right? It  
should act like when calling a non-existant view I think.

Should I open tickets for these two, or am I just overlooking  
something obvious?


- David

View raw message