Kinto / Kinto/kinto

bucket_id and collection_id are not validated on the records collection url.

Open
#1,077 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.