From 7c5ebfc4bafcf2d6902f7df1d9f27f9615766dca Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Tue, 10 Dec 2024 06:37:48 -0500 Subject: [PATCH] test: unencoded subpath cannot contain . or .. supercedes #52 Signed-off-by: Jeremy Long --- test-suite-data.json | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/test-suite-data.json b/test-suite-data.json index 689741a..c7e7696 100644 --- a/test-suite-data.json +++ b/test-suite-data.json @@ -47,6 +47,30 @@ "subpath": "googleapis/api/annotations", "is_invalid": false }, + { + "description": "invalid subpath - unencoded subpath cannot contain ..", + "purl": "pkg:GOLANG/google.golang.org/genproto@abcdedf#/googleapis/%2E%2E/api/annotations/", + "canonical_purl": "pkg:golang/google.golang.org/genproto@abcdedf#googleapis/api/annotations", + "type": "golang", + "namespace": "google.golang.org", + "name": "genproto", + "version": "abcdedf", + "qualifiers": null, + "subpath": "googleapis/../api/annotations", + "is_invalid": true + }, + { + "description": "invalid subpath - unencoded subpath cannot contain .", + "purl": "pkg:GOLANG/google.golang.org/genproto@abcdedf#/googleapis/%2E/api/annotations/", + "canonical_purl": "pkg:golang/google.golang.org/genproto@abcdedf#googleapis/api/annotations", + "type": "golang", + "namespace": "google.golang.org", + "name": "genproto", + "version": "abcdedf", + "qualifiers": null, + "subpath": "googleapis/./api/annotations", + "is_invalid": true + }, { "description": "bitbucket namespace and name should be lowercased", "purl": "pkg:bitbucket/birKenfeld/pyGments-main@244fd47e07d1014f0aed9c",