Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 54837 invoked from network); 2 Apr 2009 14:13:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Apr 2009 14:13:39 -0000 Received: (qmail 35897 invoked by uid 500); 2 Apr 2009 14:13:39 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 35805 invoked by uid 500); 2 Apr 2009 14:13:38 -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 35795 invoked by uid 99); 2 Apr 2009 14:13:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 14:13:38 +0000 X-ASF-Spam-Status: No, hits=-1997.3 required=10.0 tests=ALL_TRUSTED,FS_REPLICA,NORMAL_HTTP_TO_IP,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 14:13:33 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1820F234C003 for ; Thu, 2 Apr 2009 07:13:13 -0700 (PDT) Message-ID: <1938828061.1238681593083.JavaMail.jira@brutus> Date: Thu, 2 Apr 2009 07:13:13 -0700 (PDT) From: "Brian Candler (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Created: (COUCHDB-317) Badmatch error if _replicate target starts with slash 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 Badmatch error if _replicate target starts with slash ----------------------------------------------------- Key: COUCHDB-317 URL: https://issues.apache.org/jira/browse/COUCHDB-317 Project: CouchDB Issue Type: Bug Affects Versions: 0.9.1 Environment: svn r761188 Reporter: Brian Candler Priority: Trivial Giving a replication source or target which starts with a slash gives an Erlang barf error. (The wiki at http://wiki.apache.org/couchdb/Replication said that this slash was necessary. I will fix the wiki, but the error is still unsightly) $ curl -X POST -d '{"source":"/foo","target":"/bar"}' http://127.0.0.1:5984/_replicate {"error":"case_clause","reason":"{error,{{{badmatch,{error,illegal_database_name}},\n [{couch_rep,init,1},\n {gen_server,init_it,6},\n {proc_lib,init_p,5}]},\n {child,undefined,\"7898c2bfbbcf8adbb305371e6c3c949e\",\n {gen_server,start_link,\n [couch_rep,\n [\"7898c2bfbbcf8adbb305371e6c3c949e\",\n {local,<<\"/foo\">>,{user_ctx,null,[<<\"_admin\">>]}},\n {local,<<\"/bar\">>,\n {user_ctx,null,[<<\"_admin\">>]}}],\n []]},\n transient,1,worker,\n [couch_rep]}}}"} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.