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 B3F819AB0 for ; Wed, 22 Feb 2012 05:23:15 +0000 (UTC) Received: (qmail 95728 invoked by uid 500); 22 Feb 2012 05:23:13 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 94880 invoked by uid 500); 22 Feb 2012 05:23:12 -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 94590 invoked by uid 99); 22 Feb 2012 05:23:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Feb 2012 05:23:12 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Wed, 22 Feb 2012 05:23:10 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 1F188333BEE for ; Wed, 22 Feb 2012 05:22:49 +0000 (UTC) Date: Wed, 22 Feb 2012 05:22:49 +0000 (UTC) From: "Sam Bisbee (Closed) (JIRA)" To: dev@couchdb.apache.org Message-ID: <663876731.2869.1329888169128.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (COUCHDB-327) Replication of document results in invalid_json error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-327?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Sam Bisbee closed COUCHDB-327. ------------------------------ Resolved for a while. Closing. =20 > Replication of document results in invalid_json error > ----------------------------------------------------- > > Key: COUCHDB-327 > URL: https://issues.apache.org/jira/browse/COUCHDB-327 > Project: CouchDB > Issue Type: Bug > Affects Versions: 0.9 > Environment: Ubuntu 8.10 > Reporter: Matthew Gregg > Assignee: Adam Kocoloski > > While replicating a document containing UTf8 characters replication fails= with invalid_json errors in the receiving couch instance. > The test below will cause the replication error. > couchTests.utf8_replication =3D function(debug) { > if (debug) debugger; > var host =3D CouchDB.host; > var texts =3D []; > var dbPairs =3D [ > {source:"http://"+host+"/test_suite_db_a", > target:"http://"+host+"/test_suite_db_b"} > ] > var dbA =3D new CouchDB("test_suite_db_a"); > var dbB =3D new CouchDB("test_suite_db_b"); > var numDocs =3D 10; > var xhr; > for (var testPair =3D 0; testPair < dbPairs.length; testPair++) { > var A =3D dbPairs[testPair].source > var B =3D dbPairs[testPair].target > dbA.deleteDb(); > dbA.createDb(); > dbB.deleteDb(); > dbB.createDb(); > text =3D "=F4=80=82=80 Fakain: =F4=80=82=80 Faktor produksi yang digu= nakan hanya tenaga kerja saja. =F4=80=82=80 Kualitas ba"; > dbA.save({_id:"1", text:text}) > var result =3D CouchDB.replicate(A, B); > } > }; -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira