yaxit24 opened a new pull request, #5956:
URL: https://github.com/apache/couchdb/pull/5956
## Overview
If a _view has an impossible start_key/end_key combination, CouchDB returns
a helpful 400 query_parse_error. However, _all_docs lacked this validation and
would silently return 200 with an empty result set {"rows":[]}.
## Testing recommendations
You can verify this locally using curl:
Before this PR (returns 200 with empty rows): curl -X GET
"http://127.0.0.1:5984/mydb/_all_docs?startkey=\"z\"&endkey=\"a\""
After this PR (returns 400): curl -X GET
"http://127.0.0.1:5984/mydb/_all_docs?startkey=\"z\"&endkey=\"a\""
## Related Issues or Pull Requests
[issue #5866](https://github.com/apache/couchdb/issues/5866)
## Checklist
- [ ] This is my own work, I did not use AI, LLM's or similar technology
- [☑️] Code is written and works correctly
- [☑️] Changes are covered by tests
- [ ] Any new configurable parameters are documented in
`rel/overlay/etc/default.ini`
- [ ] Documentation changes were made in the `src/docs` folder
- [ ] Documentation changes were backported (separated PR) to affected
branches
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]