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

Alexander Shorin resolved COUCHDB-2375.
---------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.0
         Assignee: Alexander Shorin

> 500 error returned if rev query parameter contains -
> ----------------------------------------------------
>
>                 Key: COUCHDB-2375
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-2375
>             Project: CouchDB
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>            Reporter: Kristine Jetzke
>            Assignee: Alexander Shorin
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> A 500 error is returned when putting a document with 
> {{?rev=00290d7e-0d94-4bf9-a421-33813c186513}}. The response body is  
> {code}
> {"error":"unknown_error","reason":"badarg"}
> {code}
> Expected:
> 400 with {code}{"error":"bad_request","reason":"Invalid rev format"}{code}
> Steps to reproduce:
> # {{curl -X PUT 127.0.0.1:5984/tmp}}
> # {{curl -X POST 127.0.0.1:5984/tmp -d '{}' -H 'Content-Type: 
> application/json'}}
> # {{curl -v -X PUT 
> 127.0.0.1:5984/tmp/40c8ffbe2cc32de448c77af288001063?rev=00290d7e0d944bf9a421-33813c186513
>  -d '{}' -H 'Content-Type: application/json'}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to