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

Unable to view/edit documents with spaces in document ID

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.7.2
    • Fix Version/s: 0.8
    • Component/s: Futon
    • Labels:
      None
    • Environment:

      CouchDB trunk 0.7.3a644509, Erlang 5.6.2 on Linux

      Description

      Futon double-encodes the document ID, mangling spaces (and other characters?)
      ' ' -> '%25%20'

      I created a document named "test id" and tried to view it. Futon could not load the document. Log shows:

      [info] [<0.51.0>] HTTP Request: GET /test/test%2520me?revs_info=true HTTP/1.1
      [info] [<0.51.0>] HTTP Error (code 404): {obj,[

      {error,"not_found"}

      ,

      {reason,"missing"}

      ]}
      [info] [<0.51.0>] HTTP Response Code:404

        Attachments

          Activity

            People

            • Assignee:
              cmlenz Christopher Lenz
              Reporter:
              koz Ivan Kozik
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: