bucket_id and collection_id are not validated on the records collection url.
Open
enhancement
protocol
stale
- Dominant language
- Python
- Stars
- 4.4k
- Forks
- 437
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 15
Description
```self.app.get("/buckets/beer/collections/barley'/records", headers=self.headers, status=404)```
While it should probably be
```self.app.get("/buckets/beer/collections/barley'/records", headers=self.headers, status=400)```
Contributor guide
Research direction
Start by reproducing the records collection request shown in the issue and trace the handler for the bucket and collection URL. The work is done when malformed bucket_id or collection_id values on this endpoint return HTTP 400 instead of 404, with the relevant tests passing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100