Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-2375

500 error returned if rev query parameter contains -

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: None
    • Labels:
      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:

      1. curl -X PUT 127.0.0.1:5984/tmp
      2. curl -X POST 127.0.0.1:5984/tmp -d '{}' -H 'Content-Type: application/json'
      3. curl -v -X PUT 127.0.0.1:5984/tmp/40c8ffbe2cc32de448c77af288001063?rev=00290d7e0d944bf9a421-33813c186513 -d '{}' -H 'Content-Type: application/json'

        Attachments

          Activity

            People

            • Assignee:
              kxepal Alexander Shorin
              Reporter:
              tine Kristine Jetzke
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: