You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Sam Bisbee (Closed) (JIRA)" <ji...@apache.org> on 2012/02/22 06:22:49 UTC
[jira] [Closed] (COUCHDB-327) Replication of document results in
invalid_json error
[ https://issues.apache.org/jira/browse/COUCHDB-327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sam Bisbee closed COUCHDB-327.
------------------------------
Resolved for a while. Closing.
> 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 = function(debug) {
> if (debug) debugger;
> var host = CouchDB.host;
> var texts = [];
> var dbPairs = [
> {source:"http://"+host+"/test_suite_db_a",
> target:"http://"+host+"/test_suite_db_b"}
> ]
> var dbA = new CouchDB("test_suite_db_a");
> var dbB = new CouchDB("test_suite_db_b");
> var numDocs = 10;
> var xhr;
> for (var testPair = 0; testPair < dbPairs.length; testPair++) {
> var A = dbPairs[testPair].source
> var B = dbPairs[testPair].target
> dbA.deleteDb();
> dbA.createDb();
> dbB.deleteDb();
> dbB.createDb();
> text = " Fakain: Faktor produksi yang digunakan hanya tenaga kerja saja. Kualitas ba";
> dbA.save({_id:"1", text:text})
> var result = CouchDB.replicate(A, B);
> }
> };
--
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