2010-06-29 14:11:48 |
Adi Roiban |
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) |
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. |
|
2010-06-29 15:23:50 |
Adi Roiban |
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. |
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.
|
|