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

HTTP get parameter strictness/looseness

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0
    • 0.10
    • HTTP Interface
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: