Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
A 500 error is returned when putting a document with ?rev=00290d7e-0d94-4bf9-a421-33813c186513. The response body is
{"error":"unknown_error","reason":"badarg"}
Expected:
400 with
{"error":"bad_request","reason":"Invalid rev format"}
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'