You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Jan Lehnardt (Closed) (JIRA)" <ji...@apache.org> on 2011/10/13 20:13:12 UTC

[jira] [Closed] (COUCHDB-1150) URL-Encoded DELETE Request returns 500 ( " vs. %22 )

     [ https://issues.apache.org/jira/browse/COUCHDB-1150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Lehnardt closed COUCHDB-1150.
---------------------------------

    Resolution: Not A Problem

DELETE doesn't require neither " nor %22.
                
> URL-Encoded DELETE Request returns 500 ( " vs. %22 )
> ----------------------------------------------------
>
>                 Key: COUCHDB-1150
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1150
>             Project: CouchDB
>          Issue Type: Bug
>          Components: HTTP Interface
>    Affects Versions: 1.0.2
>         Environment: Windows 7 Pro, 64 bit
> HttpBuilder 0.5.1
> curl 7.21.5 (i386-pc-win32) libcurl/7.21.5 OpenSSL/0.9.8r zlib/1.2.5
>            Reporter: Armin Weisser
>              Labels: Encoding
>
> I'm facing an issue with URL-Encoded DELETE Requests where double quotes (") are translated to %22.
> These GETS are equivalent
> curl -X GET http://localhost:5984/mydb/_design/views/_view/accounts?key="4711"
> curl -X GET http://localhost:5984/mydb/_design/views/_view/accounts?key=%224711%22
> This DELETE is OK
> curl -X DELETE http://localhost:5984/mydb/4711?rev="1-7511a58b76f9a9dec6a666ecc74302f6"
> But this one returns a 500
> curl -X DELETE http://localhost:5984/mydb/4711?rev=%221-7511a58b76f9a9dec6a666ecc74302f6%22
> The problem accurs in Java (using HttpBuilder 0.5.1) and on cmd shell (using curl).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira