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

oauth handler always expect json encoded value for key, start_key ...

    XMLWordPrintableJSON

Details

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

    Description

      oauth handler always expect json encoded value for key, start_key ... even the path isn't a view, list or all_docs resources:

      Path: "/testdb/_design/legacyapp/_show/post/essai?id=essai&key=test"

      [debug] [<0.121.0>] OAuth Params: [

      {"id","essai"}

      ,

      {"key","test"}

      ]
      [error] [<0.121.0>] attempted upload of invalid JSON (set log_level to debug to log it)
      [debug] [<0.121.0>] Invalid JSON: <<"test">>

      If you are OK i will provide a patch that only try to encode when it's needed.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              benoitc Benoit Chesneau
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: