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 671196357 for ; Mon, 20 Jun 2011 14:22:11 +0000 (UTC) Received: (qmail 44687 invoked by uid 500); 20 Jun 2011 14:22:10 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 44650 invoked by uid 500); 20 Jun 2011 14:22:10 -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 44642 invoked by uid 99); 20 Jun 2011 14:22:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jun 2011 14:22:10 +0000 X-ASF-Spam-Status: No, hits=-1996.4 required=5.0 tests=ALL_TRUSTED,FS_REPLICA,NORMAL_HTTP_TO_IP,T_RP_MATCHES_RCVD,WEIRD_PORT 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; Mon, 20 Jun 2011 14:22:08 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id CA32C424649 for ; Mon, 20 Jun 2011 14:21:47 +0000 (UTC) Date: Mon, 20 Jun 2011 14:21:47 +0000 (UTC) From: "Filipe Manana (JIRA)" To: dev@couchdb.apache.org Message-ID: <991983393.20752.1308579707824.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1549253819.18564.1308439247367.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Assigned] (COUCHDB-1199) Doc in _replicator db missing when using filter property 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-1199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Filipe Manana reassigned COUCHDB-1199: -------------------------------------- Assignee: Filipe Manana > Doc in _replicator db missing when using filter property > -------------------------------------------------------- > > Key: COUCHDB-1199 > URL: https://issues.apache.org/jira/browse/COUCHDB-1199 > Project: CouchDB > Issue Type: Bug > Components: Replication > Affects Versions: 1.1 > Environment: Ubuntu 10.10 > Reporter: andrew henderson > Assignee: Filipe Manana > > 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\}{"ok":true,"id":"test1_to_test2","rev":"1-df297eda4880633bc0442590724014ff"} > 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 {\"_id\":\"test1_to_test2\"\,\"source\":\"my_culture\"\,\"target\":\"http:\/\/127.0.0.1:5984\/test2\"\,\"create_target\":\true\,\"filter\":\"http:\/\/127.0.0.1:5984\/my_culture\/profile\/app_ddocs\"} > {"ok":true,"id":"test1_to_test2","rev":"1-97641b372d500d842688d217f97081da"} > 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. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira