You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Adam Kocoloski (JIRA)" <ji...@apache.org> on 2009/11/03 03:26:00 UTC

[jira] Updated: (COUCHDB-317) Badmatch error if _replicate target starts with slash

     [ https://issues.apache.org/jira/browse/COUCHDB-317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Kocoloski updated COUCHDB-317:
-----------------------------------

      Component/s: Replication
    Fix Version/s: 0.11

Confirmed that this is still a problem in 0.10.0.  I kinda think those paths ought to be valid, but either way we should certainly catch the illegal_database_name error.

> 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
>          Components: Replication
>    Affects Versions: 0.9.1
>         Environment: svn r761188
>            Reporter: Brian Candler
>            Priority: Trivial
>             Fix For: 0.11
>
>
> 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.