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

Inconsistent decoding of rewritten query parameters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.1
    • None
    • HTTP Interface
    • New Contributors Level (Easy)

    Description

      {
      "from": "/",
      "to": "_view/q",
      "method": "GET",
      "query":

      { "limit": 30 }

      }
      (exact rule: http://pastebin.com/tjyR5e9R)

      throws

      {"error":"unknown_error","reason":"badarg"}

      (complete trace: http://pastebin.com/rKQgbmeq)

      As daleharvey pointed out on irc, this is due to inconsitent JSON decoding of query params. daleharvey suggests a fix like in
      http://pastebin.me/0ed2942f6953cb00cab1bd53861c1568

      A temporarily fix is to quote the parameters:
      {
      "from": "/",
      "to": "_view/q",
      "method": "GET",
      "query":

      { "limit": "30" }

      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            jjs Johannes J. Schmidt
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: