Skip to content

Commit b0859e0

Browse files
committed
Fix all invalid URIs in examples
Some URLs given in the test examples were invalid, e.g. using an unescaped char sequence `\u0026` which were replaced with the correct char `&` in the query. Other `url` entries had text following the URL. Signed-off-by: Sebastian Ziebell <[email protected]>
1 parent cf1218d commit b0859e0

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

cyclonedx-bom/tests/examples/1.4/valid_sbom-1.4_trivy-0.36.1_alpine-3.13.1.cdx.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
}
1414
],
1515
"component": {
16-
"bom-ref": "pkg:oci/alpine@sha256:08d6ca16c60fe7490c03d10dc339d9fd8ea67c6466dea8d558526b1330a85930?repository_url=index.docker.io%2Flibrary%2Falpine\u0026arch=amd64",
16+
"bom-ref": "pkg:oci/alpine@sha256:08d6ca16c60fe7490c03d10dc339d9fd8ea67c6466dea8d558526b1330a85930?repository_url=index.docker.io%2Flibrary%2Falpine&arch=amd64",
1717
"type": "container",
1818
"name": "alpine:3.13.1",
19-
"purl": "pkg:oci/alpine@sha256:08d6ca16c60fe7490c03d10dc339d9fd8ea67c6466dea8d558526b1330a85930?repository_url=index.docker.io%2Flibrary%2Falpine\u0026arch=amd64",
19+
"purl": "pkg:oci/alpine@sha256:08d6ca16c60fe7490c03d10dc339d9fd8ea67c6466dea8d558526b1330a85930?repository_url=index.docker.io%2Flibrary%2Falpine&arch=amd64",
2020
"properties": [
2121
{
2222
"name": "aquasecurity:trivy:SchemaVersion",
@@ -624,7 +624,7 @@
624624
]
625625
},
626626
{
627-
"ref": "pkg:oci/alpine@sha256:08d6ca16c60fe7490c03d10dc339d9fd8ea67c6466dea8d558526b1330a85930?repository_url=index.docker.io%2Flibrary%2Falpine\u0026arch=amd64",
627+
"ref": "pkg:oci/alpine@sha256:08d6ca16c60fe7490c03d10dc339d9fd8ea67c6466dea8d558526b1330a85930?repository_url=index.docker.io%2Flibrary%2Falpine&arch=amd64",
628628
"dependsOn": [
629629
"bd917794-a365-4d70-91f2-3bdd11d27c9f"
630630
]
@@ -2739,7 +2739,7 @@
27392739
"url": "https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=ccb0a11145ee72b042d10593a64eaf9e8a55ec12"
27402740
},
27412741
{
2742-
"url": "https://kc.mcafee.com/corporate/index?page=content\u0026id=SB10366"
2742+
"url": "https://kc.mcafee.com/corporate/index?page=content&id=SB10366"
27432743
},
27442744
{
27452745
"url": "https://linux.oracle.com/cve/CVE-2021-3712.html"
@@ -2781,7 +2781,7 @@
27812781
"url": "https://ubuntu.com/security/notices/USN-5051-3"
27822782
},
27832783
{
2784-
"url": "https://ubuntu.com/security/notices/USN-5051-4 (regression only in trusty/esm)"
2784+
"url": "https://ubuntu.com/security/notices/USN-5051-4"
27852785
},
27862786
{
27872787
"url": "https://ubuntu.com/security/notices/USN-5088-1"
@@ -3156,7 +3156,7 @@
31563156
"url": "https://kb.pulsesecure.net/articles/Pulse_Security_Advisories/SA44845"
31573157
},
31583158
{
3159-
"url": "https://kc.mcafee.com/corporate/index?page=content\u0026id=SB10356"
3159+
"url": "https://kc.mcafee.com/corporate/index?page=content&id=SB10356"
31603160
},
31613161
{
31623162
"url": "https://linux.oracle.com/cve/CVE-2021-3450.html"
@@ -3347,7 +3347,7 @@
33473347
"url": "https://kb.pulsesecure.net/articles/Pulse_Security_Advisories/SA44845"
33483348
},
33493349
{
3350-
"url": "https://kc.mcafee.com/corporate/index?page=content\u0026id=SB10356"
3350+
"url": "https://kc.mcafee.com/corporate/index?page=content&id=SB10356"
33513351
},
33523352
{
33533353
"url": "https://linux.oracle.com/cve/CVE-2021-3449.html"
@@ -3904,7 +3904,7 @@
39043904
"url": "https://kb.pulsesecure.net/articles/Pulse_Security_Advisories/SA44846"
39053905
},
39063906
{
3907-
"url": "https://kc.mcafee.com/corporate/index?page=content\u0026id=SB10366"
3907+
"url": "https://kc.mcafee.com/corporate/index?page=content&id=SB10366"
39083908
},
39093909
{
39103910
"url": "https://linux.oracle.com/cve/CVE-2021-23840.html"

cyclonedx-bom/tests/examples/1.4/valid_sbom-1.4_trivy-0.42.1_alpine-3.13.1.cdx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4184,7 +4184,7 @@
41844184
"url": "https://ubuntu.com/security/notices/USN-5051-3"
41854185
},
41864186
{
4187-
"url": "https://ubuntu.com/security/notices/USN-5051-4 (regression only in trusty/esm)"
4187+
"url": "https://ubuntu.com/security/notices/USN-5051-4"
41884188
},
41894189
{
41904190
"url": "https://ubuntu.com/security/notices/USN-5088-1"

0 commit comments

Comments
 (0)