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 2019/11/25 15:24:46 UTC

[GitHub] [couchdb] emlaver opened a new issue #2332: GET for /{db}/_partition returns 404 instead of 400

emlaver opened a new issue #2332: GET for /{db}/_partition returns 404 instead of 400
URL: https://github.com/apache/couchdb/issues/2332
 
 
   [NOTE]: # ( ^^ Provide a general summary of the issue in the title above. ^^ )
   
   ## Description
   
   I'm getting a 404 `not_found` when calling a GET to `/{db}/_partition` endpoint but expect a 400 `bad_request` similar to Cloudant given that the database exists.
   
   ## Steps to Reproduce
   ```
   $ curl http://localhost:5984/partitiondb/_partition
   {"error":"not_found","reason":"missing"}
   ```
   ## Expected Behaviour
   I was expecting the response to be the same or similar to Cloudant:
   ```
   curl https://ACCOUNT.cloudant.com/partitiondb/_partition
   {"error":"bad_request","reason":"invalid_partition_req"}
   ```
   
   ## Your Environment
   
   [TIP]:  # ( Include as many relevant details about your environment as possible. )
   [TIP]:  # ( You can paste the output of curl http://YOUR-COUCHDB:5984/ here. )
   
   I'm using the ibmcom/couchdb3 image.
   ```
   {"couchdb":"Welcome","version":"3.0.0-a8f3ad9","git_sha":"a8f3ad9","uuid":"5d37b58c79457e5e44b52792ff9b45b8","features":["search","partitioned","pluggable-storage-engines","reshard","scheduler"],"vendor":{"name":"The Apache Software Foundation"}}
   ```
   * CouchDB Version used: 3.0.0-a8f3ad9
   * Browser name and version: using `curl`
   * Operating System and version: MacOS 10.15.1 (19B88)
   
   ## Additional context
   
   [TIP]:  # ( Add any other context about the prbolem here. )
   

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