Skip to content

Replication target with only DB name replicates to node-local port #2239

@segevfiner

Description

@segevfiner

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:

{
  "_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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions