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 10:48:29 UTC

[GitHub] [couchdb] ricellis commented on issue #2480: Partitioned _all_docs endpoint with non-partitioned docId answers with not-properly-formatted HTTP response

ricellis commented 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-591363118
 
 
   This is reproducible for me (intermittently, but more often than not).
   `curl -X PUT -u 'u:p' 'http://localhost:5984/test2480?partitioned=true'`
   `curl -u 'u:p' -H 'Content-Type: application/json' -d '{"keys":["invalid"]}' -v 'http://localhost:5984/test2480/_partition/a/_all_docs'`
   ```
   *   Trying ::1...
   * TCP_NODELAY set
   * Connected to localhost (::1) port 5984 (#0)
   * Server auth using Basic with user '****'
   > POST /test2480/_partition/a/_all_docs HTTP/1.1
   > Host: localhost:5984
   > Authorization: Basic ****==
   > User-Agent: curl/7.64.1
   > 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 10:33:41 GMT
   < Server: CouchDB/3.0.0 (Erlang OTP/20)
   < X-Couch-Request-ID: 9c85a12afc
   < 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"}
   * Connection #0 to host localhost left intact
   * Closing connection 0
   ```
   
    For me the curl excess is 63 bytes and if I capture them with wireshark they are:
   ```
   2c
   {"total_rows":0,"offset":null,"rows":[
   
   ]}
   3
   );
   
   0
   
   
   ```
   
   So it looks like sometimes the view-like "wrapper" gets mangled into the error response.

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