Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7BBF591F1 for ; Fri, 4 Nov 2011 10:33:27 +0000 (UTC) Received: (qmail 98225 invoked by uid 500); 4 Nov 2011 10:33:26 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 98177 invoked by uid 500); 4 Nov 2011 10:33:26 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 98040 invoked by uid 99); 4 Nov 2011 10:33:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Nov 2011 10:33:26 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Nov 2011 10:33:25 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6A78D331C47 for ; Fri, 4 Nov 2011 10:33:05 +0000 (UTC) Date: Fri, 4 Nov 2011 10:33:05 +0000 (UTC) From: "Robert Newson (Updated) (JIRA)" To: dev@couchdb.apache.org Message-ID: <143019052.521.1320402785437.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1630403412.57930.1320366572289.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (COUCHDB-1332) Invalid JSON shows debug level info in response MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-1332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Newson updated COUCHDB-1332: ----------------------------------- Fix Version/s: (was: 1.1.1) > Invalid JSON shows debug level info in response > ----------------------------------------------- > > Key: COUCHDB-1332 > URL: https://issues.apache.org/jira/browse/COUCHDB-1332 > Project: CouchDB > Issue Type: Improvement > Components: HTTP Interface > Affects Versions: 1.1.1 > Environment: OS X 10.7.1 Macbook Pro > Reporter: Christopher Bonhage > Priority: Minor > Labels: erlang, error, json > Attachments: COUCHDB-1332.patch > > Original Estimate: 0h > Remaining Estimate: 0h > > 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. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira