diff --git a/CHANGELOG.md b/CHANGELOG.md index a08acaa2..9a86e0f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ and this project adheres to - 🐛(backend) fix trashbin list - ♿(frontend) improve accessibility: - ♿(frontend) remove empty alt on logo due to Axe a11y error #1516 +- 🐛(backend) fix s3 version_id validation ## [3.8.2] - 2025-10-17 diff --git a/src/backend/core/api/viewsets.py b/src/backend/core/api/viewsets.py index 7c8015cd..84402cea 100644 --- a/src/backend/core/api/viewsets.py +++ b/src/backend/core/api/viewsets.py @@ -1105,7 +1105,7 @@ class DocumentViewSet( @drf.decorators.action( detail=True, methods=["get", "delete"], - url_path="versions/(?P[0-9a-z-]+)", + url_path=r"versions/(?P[A-Za-z0-9._+\-=~]{1,1024})", ) # pylint: disable=unused-argument def versions_detail(self, request, pk, version_id, *args, **kwargs):