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

HTTP get parameter strictness/looseness

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 0.10
    • Component/s: HTTP Interface
    • Labels:
      None
    • Environment:

      Linux Debian 5.0 (VMware image)

      Description

      The use of GET params in a URL is either too loose or too strict depending on your point of view.

      Adding extra GET params that are not needed to a query works on every request except for /dbname/_all_docs, in this event CouchDB returns an error.

      Test Case:
      /foobar/all_docs?callback=jsonp1244562168058&=1244562168079

      Returns: jsonp1244562168058(

      {"error":"query_parse_error","reason":"Invalid URL parameter: \"_\""}

      );

      NOTE: this is not just a JSONP error, this is just how I found it.

      Ideally, CouchDB either needs to accept this or to error on every request with that contains erroneous GET parameters.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                paul.joseph.davis Paul Joseph Davis
                Reporter:
                sthulbourn Simon Thulbourn
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: