couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kristine Jetzke (JIRA)" <j...@apache.org>
Subject [jira] [Created] (COUCHDB-2375) 500 error returned if rev query parameter contains -
Date Fri, 10 Oct 2014 13:00:35 GMT
Kristine Jetzke created COUCHDB-2375:
----------------------------------------

             Summary: 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


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)

Mime
View raw message