couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Gregg (JIRA)" <j...@apache.org>
Subject [jira] Commented: (COUCHDB-327) Replication of document results in invalid_json error
Date Tue, 21 Apr 2009 01:14:47 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12701011#action_12701011
] 

Matthew Gregg commented on COUCHDB-327:
---------------------------------------

The following dependencies are installed, all via Ubuntu 8.10 packages.
Erlang:  12.b.5
ICU:  3.8.1
openssl: 0.9.8g
spidermonkey(libmozjs0d):  1.8.1
libcurl: 7.18.2


> 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
>
> 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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message