[ 
https://issues.apache.org/jira/browse/COUCHDB-720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12885352#action_12885352
 ] 

Klaus Trainer commented on COUCHDB-720:
---------------------------------------

Filipe, thanks for the hint! Now that I've tried that it works
I know, you were actually hinting at that previously...

Curiously enough, I don't need to specify authentication neither in the request 
URL, nor in the header, as long as I specify it in the JSON body:

kla...@devil:~$ curl -vX POST http://127.0.0.1:5991/_replicate -d 
'{"source":"test_suite_db_a","target":"http://admin:sec...@127.0.0.1:5991/test_suite_db_b"}'
* About to connect() to 127.0.0.1 port 5991 (#0)
*   Trying 127.0.0.1... connected
* Connected to 127.0.0.1 (127.0.0.1) port 5991 (#0)
> POST /_replicate HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k 
> zlib/1.2.3.3 libidn/1.15
> Host: 127.0.0.1:5991
> Accept: */*
> Content-Length: 90
> Content-Type: application/x-www-form-urlencoded
> 
< HTTP/1.1 200 OK
< Server: CouchDB/0.10.0 (Erlang OTP/R13B)
< Date: Mon, 05 Jul 2010 22:04:35 GMT
< Content-Type: text/plain;charset=utf-8
< Content-Length: 381
< Cache-Control: must-revalidate
< 
{"ok":true,"session_id":"3716ed1b266f152ebce117accd073498","source_last_seq":19,"history":[{"session_id":"3716ed1b266f152ebce117accd073498","start_time":"Mon,
 05 Jul 2010 22:04:35 GMT","end_time":"Mon, 05 Jul 2010 22:04:35 
GMT","start_last_seq":0,"end_last_seq":19,"recorded_seq":19,"missing_checked":0,"missing_found":17,"docs_read":17,"docs_written":17,"doc_write_failures":0}]}

> Pull replication fails due to "401 Authentication required" while push 
> replication works fine
> ---------------------------------------------------------------------------------------------
>
>                 Key: COUCHDB-720
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-720
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Futon, HTTP Interface, Replication
>    Affects Versions: 0.10.1, 0.11
>         Environment: Remote server having Nginx reverse proxy and basic 
> authentication enabled
>            Reporter: Jochen Kempf
>            Priority: Blocker
>
> Pull replication fails using both Futon Replicator and http request throwing 
> an "401 Authentication required" error. This just happens when design 
> documents are existent.
> Push replication on the other hand works fine.
> See used code here: http://gist.github.com/364072

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to