Subject: | uri escaping breaks design documents |
Date: | Fri, 25 Jan 2013 11:06:55 +0100 |
To: | bug-CouchDB-Client [...] rt.cpan.org |
From: | Håvard Moen <post [...] haavard.name> |
CouchDB::Client 0.09
Perl 5.14.2
LWP 6.04
CouchDB 1.2.0
CouchDB does not accept %2F in the design doc URLs and sends a redirect. When
trying to retrieve a design doc, CouchDB::Client asks for
/DBNAME/_design%2FNAME which is redirected to /DBNAME/_design/NAME
LWP does follow this redirect, but does not send authentication headers, so
the retrieve fails. One solution is to override uriName in DesignDoc.pm to not
escape $self->{id}
--
Håvard
Message body not shown because it is not plain text.