From dev-return-18794-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Sat Oct 22 16:19:56 2011 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 69C8F75F6 for ; Sat, 22 Oct 2011 16:19:56 +0000 (UTC) Received: (qmail 51267 invoked by uid 500); 22 Oct 2011 16:19:55 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 51228 invoked by uid 500); 22 Oct 2011 16:19:55 -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 51220 invoked by uid 99); 22 Oct 2011 16:19:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Oct 2011 16:19:55 +0000 X-ASF-Spam-Status: No, hits=-2000.5 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; Sat, 22 Oct 2011 16:19:52 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 1D44F316E26 for ; Sat, 22 Oct 2011 16:17:32 +0000 (UTC) Date: Sat, 22 Oct 2011 16:17:32 +0000 (UTC) From: "Martin Castellanos (Updated) (JIRA)" To: dev@couchdb.apache.org Message-ID: <1777585680.5395.1319300252121.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1144570037.5394.1319300252074.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (COUCHDB-1315) Remote pull replication with filter and params fails with reason: invalid UTF-8 JSON MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-1315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Castellanos updated COUCHDB-1315: ---------------------------------------- Description: I'm posting the following to: http://localhost:5984/_replicate {"source":"http://MARTIN-LT:5984/pdlib","target":"pdlib", "filter":"replication/SINGLE_COLLECTION", "query_params": {"key":"bb579347-9bfb-4dda-84eb-622b43108872"}} This is the output from the remote machine log: [Mon, 17 Oct 2011 01:20:48 GMT] [debug] [<0.476.0>] 'GET' /pdlib/_changes?key=bb579347-9bfb-4dda-84eb-622b43108872&filter=replication/SINGLE_COLLECTION&style=all_docs&heartbeat=10000&since=0&feed=normal {1, 1} Headers: [{'Accept',"application/json"}, {'Content-Length',"0"}, {'Host',"MARTIN-NEWPC:5984"}, {'User-Agent',"CouchDB/1.0.2"}] [Mon, 17 Oct 2011 01:20:48 GMT] [debug] [<0.476.0>] OAuth Params: [{"key","bb579347-9bfb-4dda-84eb-622b43108872"}, {"filter","replication/SINGLE_COLLECTION"}, {"style","all_docs"}, {"heartbeat","10000"}, {"since","0"}, {"feed","normal"}] [Mon, 17 Oct 2011 01:20:48 GMT] [info] [<0.476.0>] 192.168.2.3 - - 'GET' /pdlib/_changes?key=bb579347-9bfb-4dda-84eb-622b43108872&filter=replication/SINGLE_COLLECTION&style=all_docs&heartbeat=10000&since=0&feed=normal 200 [Mon, 17 Oct 2011 01:20:48 GMT] [error] [<0.476.0>] attempted upload of invalid JSON (set log_level to debug to log it) [Mon, 17 Oct 2011 01:20:48 GMT] [debug] [<0.476.0>] Invalid JSON: <<"bb579347-9bfb-4dda-84eb-622b43108872">> [Mon, 17 Oct 2011 01:20:48 GMT] [info] [<0.476.0>] 192.168.2.3 - - 'GET' /pdlib/_changes?key=bb579347-9bfb-4dda-84eb-622b43108872&filter=replication/SINGLE_COLLECTION&style=all_docs&heartbeat=10000&since=0&feed=normal 400 [Mon, 17 Oct 2011 01:20:48 GMT] [debug] [<0.476.0>] httpd 400 error response: {"error":"bad_request","reason":"invalid UTF-8 JSON"} This only happens on a pull replication, if I switch source and target values it works correctly. was: I'm posting the following to: http://localhost:5984/_replicate {"source":"http://MARTIN-LT:5984/pdlib","target":"pdlib", "filter":"replication/SINGLE_COLLECTION", "query_params": {"key":"ffedddf1-da9e-47a8-b41c-2ac8e48bf7a8"}} This is the output from the remote machine log: [Mon, 17 Oct 2011 01:20:48 GMT] [debug] [<0.476.0>] 'GET' /pdlib/_changes?key=bb579347-9bfb-4dda-84eb-622b43108872&filter=replication/SINGLE_COLLECTION&style=all_docs&heartbeat=10000&since=0&feed=normal {1, 1} Headers: [{'Accept',"application/json"}, {'Content-Length',"0"}, {'Host',"MARTIN-NEWPC:5984"}, {'User-Agent',"CouchDB/1.0.2"}] [Mon, 17 Oct 2011 01:20:48 GMT] [debug] [<0.476.0>] OAuth Params: [{"key","bb579347-9bfb-4dda-84eb-622b43108872"}, {"filter","replication/SINGLE_COLLECTION"}, {"style","all_docs"}, {"heartbeat","10000"}, {"since","0"}, {"feed","normal"}] [Mon, 17 Oct 2011 01:20:48 GMT] [info] [<0.476.0>] 192.168.2.3 - - 'GET' /pdlib/_changes?key=bb579347-9bfb-4dda-84eb-622b43108872&filter=replication/SINGLE_COLLECTION&style=all_docs&heartbeat=10000&since=0&feed=normal 200 [Mon, 17 Oct 2011 01:20:48 GMT] [error] [<0.476.0>] attempted upload of invalid JSON (set log_level to debug to log it) [Mon, 17 Oct 2011 01:20:48 GMT] [debug] [<0.476.0>] Invalid JSON: <<"bb579347-9bfb-4dda-84eb-622b43108872">> [Mon, 17 Oct 2011 01:20:48 GMT] [info] [<0.476.0>] 192.168.2.3 - - 'GET' /pdlib/_changes?key=bb579347-9bfb-4dda-84eb-622b43108872&filter=replication/SINGLE_COLLECTION&style=all_docs&heartbeat=10000&since=0&feed=normal 400 [Mon, 17 Oct 2011 01:20:48 GMT] [debug] [<0.476.0>] httpd 400 error response: {"error":"bad_request","reason":"invalid UTF-8 JSON"} This only happens on a pull replication, if I switch source and target values it works correctly. > Remote pull replication with filter and params fails with reason: invalid UTF-8 JSON > ------------------------------------------------------------------------------------ > > Key: COUCHDB-1315 > URL: https://issues.apache.org/jira/browse/COUCHDB-1315 > Project: CouchDB > Issue Type: Bug > Components: Replication > Affects Versions: 1.1 > Environment: - Windows 7 x64 on target machine > - Windows 7 x32 on source machine > Reporter: Martin Castellanos > Labels: pull, replication > > I'm posting the following to: http://localhost:5984/_replicate > {"source":"http://MARTIN-LT:5984/pdlib","target":"pdlib", "filter":"replication/SINGLE_COLLECTION", "query_params": {"key":"bb579347-9bfb-4dda-84eb-622b43108872"}} > This is the output from the remote machine log: > [Mon, 17 Oct 2011 01:20:48 GMT] [debug] [<0.476.0>] 'GET' /pdlib/_changes?key=bb579347-9bfb-4dda-84eb-622b43108872&filter=replication/SINGLE_COLLECTION&style=all_docs&heartbeat=10000&since=0&feed=normal {1, > 1} > Headers: [{'Accept',"application/json"}, > {'Content-Length',"0"}, > {'Host',"MARTIN-NEWPC:5984"}, > {'User-Agent',"CouchDB/1.0.2"}] > [Mon, 17 Oct 2011 01:20:48 GMT] [debug] [<0.476.0>] OAuth Params: [{"key","bb579347-9bfb-4dda-84eb-622b43108872"}, > {"filter","replication/SINGLE_COLLECTION"}, > {"style","all_docs"}, > {"heartbeat","10000"}, > {"since","0"}, > {"feed","normal"}] > [Mon, 17 Oct 2011 01:20:48 GMT] [info] [<0.476.0>] 192.168.2.3 - - 'GET' /pdlib/_changes?key=bb579347-9bfb-4dda-84eb-622b43108872&filter=replication/SINGLE_COLLECTION&style=all_docs&heartbeat=10000&since=0&feed=normal 200 > [Mon, 17 Oct 2011 01:20:48 GMT] [error] [<0.476.0>] attempted upload of invalid JSON (set log_level to debug to log it) > [Mon, 17 Oct 2011 01:20:48 GMT] [debug] [<0.476.0>] Invalid JSON: <<"bb579347-9bfb-4dda-84eb-622b43108872">> > [Mon, 17 Oct 2011 01:20:48 GMT] [info] [<0.476.0>] 192.168.2.3 - - 'GET' /pdlib/_changes?key=bb579347-9bfb-4dda-84eb-622b43108872&filter=replication/SINGLE_COLLECTION&style=all_docs&heartbeat=10000&since=0&feed=normal 400 > [Mon, 17 Oct 2011 01:20:48 GMT] [debug] [<0.476.0>] httpd 400 error response: > {"error":"bad_request","reason":"invalid UTF-8 JSON"} > This only happens on a pull replication, if I switch source and target values it works correctly. -- 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