Details
-
Bug
-
Resolution: Fixed
-
Critical
-
4.0.0
-
Security Level: Public
-
Untriaged
-
No
Description
Recreating existing replication
=======================
Goxdcr - error thrown but status is OK(http return code 200)
----------
Arunas-MacBook-Pro:testrunner apiravi$ curl -v -u Administrator:welcome http://10.3.4.190:8091/controller/createReplication -d fromBucket=default -d toCluster=cluster1 -d toBucket=default -d replicationType=continuous
- About to connect() to 10.3.4.190 port 8091 (#0)
- Trying 10.3.4.190...
- Adding handle: conn: 0x7ffb59004000
- Adding handle: send: 0
- Adding handle: recv: 0
- Curl_addHandleToPipeline: length: 1
- - Conn 0 (0x7ffb59004000) send_pipe: 1, recv_pipe: 0
- Connected to 10.3.4.190 (10.3.4.190) port 8091 (#0)
- Server auth using Basic with user 'Administrator'
> POST /controller/createReplication HTTP/1.1
> Authorization: Basic QWRtaW5pc3RyYXRvcjp3ZWxjb21l
> User-Agent: curl/7.30.0
> Host: 10.3.4.190:8091
> Accept: /
> Content-Length: 81
> Content-Type: application/x-www-form-urlencoded
> - upload completely sent off: 81 out of 81 bytes
< HTTP/1.1 200 OK - Server MochiWeb/1.0 (Any of you quaids got a smint?) is not blacklisted
< Server: MochiWeb/1.0 (Any of you quaids got a smint?)
< Date: Tue, 20 Jan 2015 18:49:46 GMT
< Content-Type: application/json
< Content-Length: 83
< - Connection #0 to host 10.3.4.190 left intact
{"errors":Unknown macro: {"_"}}
Erlang XDCR
------------------
Arunas-MacBook-Pro:testrunner apiravi$ curl -v -u Administrator:welcome http://10.3.4.190:8091/contype=continuouseplication -d fromBucket=default -d toCluster=cluster1 -d toBucket=default -d replicationTy
- About to connect() to 10.3.4.190 port 8091 (#0)
- Trying 10.3.4.190...
- Adding handle: conn: 0x7fe012004000
- Adding handle: send: 0
- Adding handle: recv: 0
- Curl_addHandleToPipeline: length: 1
- - Conn 0 (0x7fe012004000) send_pipe: 1, recv_pipe: 0
- Connected to 10.3.4.190 (10.3.4.190) port 8091 (#0)
- Server auth using Basic with user 'Administrator'
> POST /controller/createReplication HTTP/1.1
> Authorization: Basic QWRtaW5pc3RyYXRvcjp3ZWxjb21l
> User-Agent: curl/7.30.0
> Host: 10.3.4.190:8091
> Accept: /
> Content-Length: 81
> Content-Type: application/x-www-form-urlencoded
> - upload completely sent off: 81 out of 81 bytes
< HTTP/1.1 400 Bad Request - Server Couchbase Server is not blacklisted
< Server: Couchbase Server
< Pragma: no-cache
< Date: Tue, 20 Jan 2015 19:07:45 GMT
< Content-Type: application/json
< Content-Length: 83
< Cache-Control: no-cache
< - Connection #0 to host 10.3.4.190 left intact
{"errors":Unknown macro: {"_"}}
Pls iron out error messages and return codes for remote cluster reference as well.
Recreating existing remote cluster reference
==================================
Goxdcr
----------
Arunas-MacBopools/default/remoteClusters -d name=cluster1 -d hostname=10.3.4.191:8091 -d username=Administrator -d password=welcomeet=default -d toCluster=cluster1 -d toBucket=default -d replicationTy
- About to connect() to 10.3.4.190 port 8091 (#0)
- Trying 10.3.4.190...
- Adding handle: conn: 0x7fb2f2004000
- Adding handle: send: 0
- Adding handle: recv: 0
- Curl_addHandleToPipeline: length: 1
- - Conn 0 (0x7fb2f2004000) send_pipe: 1, recv_pipe: 0
- Connected to 10.3.4.190 (10.3.4.190) port 8091 (#0)
- Server auth using Basic with user 'Administrator'
> POST /pools/default/remoteClusters HTTP/1.1
> Authorization: Basic QWRtaW5pc3RyYXRvcjp3ZWxjb21l
> User-Agent: curl/7.30.0
> Host: 10.3.4.190:8091
> Accept: /
> Content-Length: 78
> Content-Type: application/x-www-form-urlencoded
> - upload completely sent off: 78 out of 78 bytes
< HTTP/1.1 500 Internal Server Error - Server MochiWeb/1.0 (Any of you quaids got a smint?) is not blacklisted
< Server: MochiWeb/1.0 (Any of you quaids got a smint?)
< Date: Tue, 20 Jan 2015 18:54:17 GMT
< Content-Type: text/plain; charset=utf-8
< Content-Length: 31
<
key being added already exists - Connection #0 to host 10.3.4.190 left intact
Erlang xdcr
---------------
Arunas-MacBook-Pro:testrunner apiravi$ curl -v -u Administrator:welcome http://10.3.4.190:8091/pools/default/remoteClusters -d name=cluster1 -d hostname=10.3.4.191:8091 -d username=Administrator -d password=welcome
- About to connect() to 10.3.4.190 port 8091 (#0)
- Trying 10.3.4.190...
- Adding handle: conn: 0x7fa13b004000
- Adding handle: send: 0
- Adding handle: recv: 0
- Curl_addHandleToPipeline: length: 1
- - Conn 0 (0x7fa13b004000) send_pipe: 1, recv_pipe: 0
- Connected to 10.3.4.190 (10.3.4.190) port 8091 (#0)
- Server auth using Basic with user 'Administrator'
> POST /pools/default/remoteClusters HTTP/1.1
> Authorization: Basic QWRtaW5pc3RyYXRvcjp3ZWxjb21l
> User-Agent: curl/7.30.0
> Host: 10.3.4.190:8091
> Accept: /
> Content-Length: 78
> Content-Type: application/x-www-form-urlencoded
> - upload completely sent off: 78 out of 78 bytes
< HTTP/1.1 400 Bad Request - Server Couchbase Server is not blacklisted
< Server: Couchbase Server
< Pragma: no-cache
< Date: Tue, 20 Jan 2015 19:04:40 GMT
< Content-Type: application/json
< Content-Length: 50
< Cache-Control: no-cache
< - Connection #0 to host 10.3.4.190 left intact {"name":"duplicate cluster names are not allowed"}
Attachments
Issue Links
- is duplicated by
-
MB-13480 rest api return 500 if supplied with incorrect user/password
- Resolved