[Defect]: 1.7 XML schema omits protocol relatedCryptographicAssets
Describe the defect
The CycloneDX 1.7 JSON schema defines
cryptoProperties.protocolProperties.relatedCryptographicAssets and marks the
older cryptoRefArray property as deprecated in favor of it. The 1.7 XML
schema, however, only allows repeated cryptoRef children under
protocolProperties; it does not define relatedCryptographicAssets there.
This makes the JSON and XML representations inconsistent. A 1.7 document with one protocol-related cryptographic asset passes the JSON schema, but the equivalent XML is rejected with:
Element '{http://cyclonedx.org/schema/bom/1.7}relatedCryptographicAssets':
This element is not expected. Expected is (... cryptoRef).
Expected behavior: the 1.7 XSD should permit the preferred
relatedCryptographicAssets representation for protocol properties, matching
the JSON schema and the corresponding certificate/material representations.
Additional context
- Current specification
masterchecked at commite02a34ae42a48239f54e04f75280b9000b29f1fb. - The
protocolPropertiessection in the vendored XSD used bycyclonedx-python-libis byte-for-byte identical to the current specification section and has the same omission. - No open or closed specification issue/PR matching
relatedCryptographicAssets+protocolPropertieswas found before filing. - This was found while reviewing cyclonedx-python-lib#1016, where the model can now round-trip the field but strict XML schema validation exposes the specification mismatch.
Report prepared with OpenAI Codex assistance and independently reproduced by the submitter.
@stevespringett should we release a bugfix of CDX 1.7for this?
this is intended to get fixed with the streamline/sync release 1.7.2 see https://github.com/CycloneDX/specification/milestone/16
a fix was released per https://github.com/CycloneDX/specification/releases/tag/1.7.2