You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2019/10/07 10:52:31 UTC

[GitHub] [couchdb] segevfiner opened a new issue #2239: Replication target with only DB name replicates to node-local port

segevfiner opened a new issue #2239: Replication target with only DB name replicates to node-local port
URL: https://github.com/apache/couchdb/issues/2239
 
 
   ## Description
   
   When you create a replication that specifies a `target` using only a database name, CouchDB will replicate to the node local port which is unexpected and not really useful. Since AFAIK `user_ctx` only works when you specify the `source`/`target` as only a DB name that also neuters that feature and basically local DB references in replications in general.
   
   ## Steps to Reproduce
   
   Create a replication like this:
   ```json
   {
     "_id": "foo",
     "source": "http://some-other-db:5984/foo",
     "target": "foo",
     "continuous": true,
     "user_ctx": {"name": "admin","roles": ["_admin"]}, "owner": "admin"}
   }
   ```
   
   ## Expected Behaviour
   
   The target database is replicated on the standard clustered port (5984). But it is replicated to the node local (5986) port instead.
   
   ## Your Environment
   
   * CouchDB Version used: 2.3.1
   * Browser name and version: Firefox 69.0.2
   * Operating System and version: macOS 10.14.6
   
   ## Additional context
   
   This only happens if I use `create_target` if I create the DB manually and don't use `create_target` then the replication is directed at the clustered port correctly.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services