numerique-gouv / impress

MIT License
10 stars 2 forks source link

🐛 404 on some versions in environment #187

Open AntoLC opened 4 weeks ago

AntoLC commented 4 weeks ago

Bug Report

We noticed some 404 when reaching some versions. The versions were displayed from the list endpoint, but gives a 404 when we tried to access the resource (see here).

Investigate why, it could be a quota problem with Minio, if yes we should find a way to monitor that, to get some alerts or something (https://github.com/numerique-gouv/impress/issues/116).

AntoLC commented 1 week ago

The error comes from near here, the filter from_datetime does not work as expected, listing versions that are not permitted to read. https://github.com/numerique-gouv/impress/blob/b716881d50368d1b764379cf0cac9cc8c26f7b82/src/backend/core/api/viewsets.py#L361-L363