Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.1
-
None
-
Ubuntu 10.10
Description
Scenario1 below works as expected, Scenario2 fails.
Scenario1
curl -X POST 'http://127.0.0.1:5984/_replicator/' -H "Content-Type: application/json" -d {\"_id\":\"test1_to_test2\"\,\"source\":\"my_culture\"\,\"target\":\"http:\/\/127.0.0.1:5984\/test2\"\,\"create_target\":\true}
Doc is created in _replicator
Replication completes successfully
Scenario2
curl -X POST 'http://127.0.0.1:5984/_replicator/' -H "Content-Type: application/json" -d
Doc is not created in _replicator (in spite of 'ok' response above)
No replication occurs.
Now, I am not sure whether I got the right syntax in the filter property since I could find no documentation for it. In particular, whether the filter should be in the source db or _replicator. And do we use a full URL as above or just ddoc/filter name? The filter documented in Scenario2 does exist in source db.
In any case, the doc in _replicator ought not to be getting lost as does happen.