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

Invalid JSON shows debug level info in response

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.1
    • Fix Version/s: 1.2, 1.3
    • Component/s: HTTP Interface
    • Labels:
    • Environment:

      OS X 10.7.1 Macbook Pro

    • Skill Level:
      New Contributors Level (Easy)

      Description

      When sending invalid JSON in an HTTP request, the response contains the string "invalid UTF-8 JSON: " followed by an erlang tuple and the escaped internal form of the string. I noticed that this error tuple is only logged when the [log] level is debug. I would propose that the error tuple only be show in the client response when debug is on as well.

        Attachments

        1. COUCHDB-1332.patch
          1 kB
          Christopher Bonhage

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bonhage Christopher Bonhage
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: