-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ExternalReference.url XML validation error xs:anyURI
#158
Comments
Thank you for the error report, @uselab . If this bug affects your workflow, you might downgrade cyclonedx-php-composer 3.8 until a fix is ready. |
issue probably is caused by malformed input in the original affected versions of cyclonedx-php-composer : 3.9 how to reproduce:
issue was forwarded to core lib: CycloneDX/cyclonedx-php-library#35 |
xs:anyURI
Hi @jkowalleck, Sorry about the late reply, I added the lock file inside the zip. We have a temporary work around by adding --no-validate, seeing the file is accepted by the rest of our pipeline. |
tried to fix the root cause in upstream via pear/PEAR_Exception#12 |
Thank you very much for reporting the issue, @uselab The issue was reproduced and got fixed in v3.9.1 - which was released just a minute ago. Could you update and see if a valid XML could be generated? |
Hi @jkowalleck , tested and works like a charm now! |
the version you are using
cyclonedx/cyclonedx-php-composer V3.9.0
your operating system and version
WSL2.0 Ubuntu 20.04 on Windows 10
reproducible steps (1 2 3...) that cause the issue including any required files
Execute "php composer.phar make-bom --exclude-dev --output-file=composer-bom.xml ./composer.json"
what you expected, versus what happened
The system generates an composer-bom.xml file, but instead the system gives an error. See error and reason below
any relevant screenshots and other outputs
Output:
the drush/drush requirements tree has pear/pear_exception as an requirement.
Inside the composer.json of this module there is an URL with
[]
(See support->issues in the content below)the systems fails validating the output with the following message:
Validate BOM with CycloneDX\Core\Validation\Validators\XmlValidator for 1.3
ValidationError:
ValidationError: Element '{http://cyclonedx.org/schema/bom/1.3}url': 'http://pear.php.net/bugs/search.php?cmd=display&package_name[]=PEAR_Exception' is not a valid value of the atomic type 'xs:anyURI'.
Generating the same file with
--no-validate
generates the file correctly, which we merge with our NPM bom file and upload to dTrackThe text was updated successfully, but these errors were encountered: