couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kai Griffin - Relaxing <>
Subject URL encoding issue
Date Sun, 17 May 2009 08:17:59 GMT
These past few weeks, I've been re-building our flagship product as a 
Flex application, with couchdb as the back end, and this has been 
progressing really well.  However, I've hit a strange snag, to do with 
URL encoding.  Flex's HTTPService component automatically url-encodes 
requests, so that...




that is, when I look at the Erlang console after the request has been 
sent from Flex, I see the request with quotes encoded as %22's as shown 
above when issued from Flex.

The trouble is, couchdb fails to return any rows when those quotes are 
encoded as %22's like that.  When I issue the exact same request in 
curl, the quotes are not automatically encoded (they still show as 
quotes in Erlang's console), and I get the correct result set for the 
view.  I always use group=true, so that's not the difference.

What is particularly strange to me, is that a different design/view I 
have works perfectly with the following key:


In this case, the first item in the key is an unquoted integer, but 
couchdb is still fine with the quoted date, and correctly returns a 
result from either Flex or curl.

Any suggestions from a kind soul out there?


View raw message