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 2020/02/26 18:53:40 UTC

[GitHub] [couchdb] wohali edited a comment on issue #2480: Partitioned _all_docs endpoint with non-partitioned docId answers with not-properly-formatted HTTP response

wohali edited a comment on issue #2480: Partitioned _all_docs endpoint with non-partitioned docId answers with not-properly-formatted HTTP response
URL: https://github.com/apache/couchdb/issues/2480#issuecomment-591569145
 
 
   [edited] Cannot reproduce on Windows. *CAN* reproduce on Linux. 
   
   ```
   $ curl -u 'u:p' -H 'Content-Type: application/json' -d '{"keys":["invalid"]}' -v 'http://localhost:15984/test2480/_partition/a/_all_docs'
   * Expire in 0 ms for 6 (transfer 0x56228db12e80)
   * Expire in 1 ms for 1 (transfer 0x56228db12e80)
   * Expire in 0 ms for 1 (transfer 0x56228db12e80)
   * Expire in 1 ms for 1 (transfer 0x56228db12e80)
   * Expire in 0 ms for 1 (transfer 0x56228db12e80)
   * Expire in 0 ms for 1 (transfer 0x56228db12e80)
   * Expire in 0 ms for 1 (transfer 0x56228db12e80)
   *   Trying ::1...
   * TCP_NODELAY set
   * Expire in 149999 ms for 3 (transfer 0x56228db12e80)
   * Expire in 200 ms for 4 (transfer 0x56228db12e80)
   * connect to ::1 port 15984 failed: Connection refused
   *   Trying 127.0.0.1...
   * TCP_NODELAY set
   * Expire in 149999 ms for 3 (transfer 0x56228db12e80)
   * Connected to localhost (127.0.0.1) port 15984 (#0)
   * Server auth using Basic with user 'u'
   > POST /test2480/_partition/a/_all_docs HTTP/1.1
   > Host: localhost:15984
   > Authorization: Basic dTpw
   > User-Agent: curl/7.64.0
   > Accept: */*
   > Content-Type: application/json
   > Content-Length: 20
   >
   * upload completely sent off: 20 out of 20 bytes
   < HTTP/1.1 400 Bad Request
   < Cache-Control: must-revalidate
   < Content-Length: 73
   < Content-Type: application/json
   < Date: Wed, 26 Feb 2020 18:52:27 GMT
   < Server: CouchDB/3.0.0-03a77db (Erlang OTP/20)
   < X-Couch-Request-ID: d842650a3e
   < X-CouchDB-Body-Time: 0
   <
   * Excess found in a non pipelined read: excess = 63, size = 73, maxdownload = 73, bytecount = 0
   {"error":"illegal_docid","reason":"Doc id must be of form partition:id"}
   ```

----------------------------------------------------------------
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