[v5.8] Require absolute path for local API

Signed-off-by: Jan Rodák <hony.com@seznam.cz>
(cherry picked from commit 2f7094c0de)
This commit is contained in:
Jan Rodák
2025-10-31 16:18:02 +01:00
parent 6465c07d21
commit 3918d4ca75
7 changed files with 19 additions and 9 deletions

View File

@@ -390,12 +390,12 @@ class ArtifactTestCase(APITestCase):
rjson = r.json()
# Assert correct response code
self.assertEqual(r.status_code, 500, r.text)
self.assertEqual(r.status_code, 400, r.text)
# Assert return error response is json and contains correct message
self.assertEqual(
rjson["cause"],
'path "../../etc/passwd" is not absolute',
'path is not absolute',
)
def test_inspect(self):