do_all_replication is forcing a remote_db_name_prefix

Bug #599788 reported by Adi Roiban
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
desktopcouch
New
Undecided
Unassigned

Bug Description

I am trying to replicate to a couchdb server that does not have any prefix.

In this case desktopcouch is appening a slash in front of the database name creating an invalid name.

in /usr/lib/python2.6/dist-packages/desktopcouch/replication.py we have:

                        log.debug("want to replipush %r to static host %r @ %s",
                                remote_db_name, remote_hostid, addr)

                        couchdb_io.replicate(db_name, remote_db_name,
                                target_host=addr, target_port=port,
                                source_port=local_port, target_ssl=target_ssl,
                                target_oauth=remote_oauth_data,
                                local_uri=local_uri)

while we should have something like:

                        remote_db_name = (
                                (remote_db_name_prefix + "/" + db_name) if remote_db_name_prefix
                                else db_name)

                        log.debug("want to replipush %r to static host %r @ %s",
                                remote_db_name, remote_hostid, addr)

                        couchdb_io.replicate(db_name, remote_db_name,
                                target_host=addr, target_port=port,
                                source_port=local_port, target_ssl=target_ssl,
                                target_oauth=remote_oauth_data,
                                local_uri=local_uri)

This happens for both pull and push code.

Adi Roiban (adiroiban)
description: updated
Adi Roiban (adiroiban)
description: updated
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.