popojargo opened a new issue #1023: Internal error on _explain with sort
URL: https://github.com/apache/couchdb/issues/1023
 
 
   <!--- Provide a general summary of the issue in the Title above -->
   
   ## Expected Behavior
   When I query _find with some parameters, I expect to have explanations with 
_explain. 
   
   ## Current Behavior
   When I query _find with some parameters, I get a valid response. When I 
attempt to send the same params to _explain, I get an internal error
   
   Params sent:
   
   ```json
   
{"selector":{"firstName":{"$gt":null}},"fields":["firstName"],"limit":1,"skip":1,"sort":[{"firstName":"desc"}]}
   ```
   Error:
   
   ```json
   {"error":"error","reason":"{invalid_object,{<<\"????\">>}}"}
   ```
   
   ## Steps to Reproduce (for bugs)
   <!--- Provide a link to a live example, or an unambiguous set of steps to -->
   <!--- reproduce this bug. Include code to reproduce, if relevant -->
   
   ```bash
   curl -X PUT http://localhost:5984/test_db
   ```
   
   ```bash
   curl -X POST http://localhost:5984/test_db/ -H 'Content-type: 
application/json' -d '{"firstName":"my name is jeff"}'
   ```
   ```basj
   curl -X POST http://localhost:5984/test_db/_index -H 'Content-type: 
application/json' -d '{"index":{"fields":["firstName"]}}'
   ```
   ```bash
   curl -X POST http://localhost:5984/test_db/_explain -H 'Content-type: 
application/json' -d 
'{"selector":{"firstName":{"$gt":null}},"fields":["firstName"],"limit":1,"skip":1,"sort":[{"firstName":"desc"}]}'
   ```
   
   ## Context
   
   I was fixing my Couch library's test with 2.1.1
   
   ## Your Environment
   <!--- Include as many relevant details about the environment you experienced 
the bug in -->
   * Version used: 2.1.1
   * Browser Name and version:
   * Operating System and version (desktop or mobile): Windows (Docker has the 
same error)
   * Link to your project:
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to