diff --git a/CHANGELOG.md b/CHANGELOG.md index b14ea36100..0e22458c76 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ and this project adheres to - ⚡️(backend) improve trashbin endpoint performance - 🐛(backend) manage invitation partial update without email #1494 +- 🐛(backend) fix s3 version_id validation ## [3.8.0] - 2025-10-14 diff --git a/src/backend/core/api/viewsets.py b/src/backend/core/api/viewsets.py index 009d96839e..f300b191ba 100644 --- a/src/backend/core/api/viewsets.py +++ b/src/backend/core/api/viewsets.py @@ -1102,7 +1102,7 @@ def versions_list(self, request, *args, **kwargs): @drf.decorators.action( detail=True, methods=["get", "delete"], - url_path="versions/(?P[0-9a-z-]+)", + url_path=r"versions/(?P[^/]{1,1024})", ) # pylint: disable=unused-argument def versions_detail(self, request, pk, version_id, *args, **kwargs):