Cannot replicate database which name contains /, ), $, ( and +

Bug #533769 reported by Roman Yepishev
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
desktopcouch
Confirmed
Undecided
Ubuntu One Client Engineering team

Bug Description

Hello,

2010-03-07 14:24:43,942 ERROR can't replicate 'rtg)test' 'http://localhost:47571/' <== {'source': 'rtg%29test', 'target': {'url': 'https://couchdb.one.ubuntu.com/u%2F630%2Fb96%2F52053%2Frtg%29test', 'auth': {'oauth': {'consumer_secret': 'HiddenHidd', 'token': 'Hidden', 'consumer_key': 'ubuntuone', 'token_secret': 'HiddenHiddenHiddenHiddenHiddenHiddenHiddenHiddenHiddenHiddenHiddenHiddenHiddenHi'}}}}
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/desktopcouch/pair/couchdb_pairing/couchdb_io.py", line 274, in replicate
    content=record)
  File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 985, in post
    **params)
  File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 1035, in _request
    raise ServerError((status_code, error))
ServerError: (500, ('case_clause', '{error,{{{case_clause,{error,illegal_database_name}},
         [{couch_rep,open_db,2},
          {couch_rep,do_init,1},
          {couch_rep,init,1},
          {gen_server,init_it,6},
          {proc_lib,init_p_do_apply,3}]},
        {child,undefined,"2d0327dd3a015c8572b199fb933effa1",
               {gen_server,start_link,
                           [couch_rep,
                            ["2d0327dd3a015c8572b199fb933effa1",
                             {[{<<"source">>,<<"rtg%29test">>},
                               {<<"target">>,
                                {[{<<"url">>,
                                   <<"https://couchdb.one.ubuntu.com/u%2F630%2Fb96%2F52053%2Frtg%29test">>},
                                  {<<"auth">>,
                                   {[{<<"oauth">>,
                                      {[{<<"consumer_secret">>,
                                         <<"hammertime">>},
                                        {<<"token">>,
                                         <<"SRTj2PtxBblm3SCJXcZj">>},
                                        {<<"consumer_key">>,<<"ubuntuone">>},
                                        {<<"token_secret">>, <<"Secret!">>}]}}]}}]}}]},
                             {user_ctx,<<"Secret">>,[<<"_admin">>]}],
                            []]},\n temporary,1,worker,
               [couch_rep]}}}'))

This happens for databases with the charaters / , (, ), $ and + in their names.
Local couchdb allows one to create databases with these and these names are perfectly valid, yet their contents cannot be replicated to UbuntuOne servers.

Tags: desktop+
Changed in desktopcouch:
status: New → Confirmed
assignee: nobody → Ubuntu One Desktop+ team (ubuntuone-desktop+)
tags: added: desktop+
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.