Coder Social home page Coder Social logo

Comments (6)

jkowalleck avatar jkowalleck commented on July 17, 2024

Thank you for the error report, @uselab .
Could you drop in the composer.lock you used?

If this bug affects your workflow, you might downgrade cyclonedx-php-composer 3.8 until a fix is ready.
Alternatively you could have cyclonedx-php-composer output as JSON - which might not have these strict validation rules.
Sorry for the inconvenience

from cyclonedx-php-composer.

jkowalleck avatar jkowalleck commented on July 17, 2024

issue probably is caused by malformed input in the original composer.json or composer.lock file
caused by "PEAR_Exception" -> https://github.com/pear/PEAR_Exception/blob/master/composer.json

affected versions of cyclonedx-php-composer : 3.9
since the ExternalReferences are read from composer packages and put into XML - JSON not affected

how to reproduce:

  • have malformed URI used as a ExtRef
  • unittests possible: yes
  • demo / integration tests possible: yes

issue was forwarded to core lib: CycloneDX/cyclonedx-php-library#35

from cyclonedx-php-composer.

 avatar commented on July 17, 2024

Hi @jkowalleck,

Sorry about the late reply, I added the lock file inside the zip.
Not sure if you still need it seeing you already found the same issue it seems
composer.zip

We have a temporary work around by adding --no-validate, seeing the file is accepted by the rest of our pipeline.
Once a fix is in place and released we will update and remove the --no-validate

from cyclonedx-php-composer.

jkowalleck avatar jkowalleck commented on July 17, 2024

tried to fix the root cause in upstream via pear/PEAR_Exception#12

from cyclonedx-php-composer.

jkowalleck avatar jkowalleck commented on July 17, 2024

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?

from cyclonedx-php-composer.

 avatar commented on July 17, 2024

Hi @jkowalleck ,

tested and works like a charm now!

from cyclonedx-php-composer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.