Giter Site home page Giter Site logo

Comments (6)

ina-lieder avatar ina-lieder commented on August 29, 2024 1

@jeremylong unfortunately the suggested fix didn't work, the error still happens.

Please have a look at the bug described here "https://issues.apache.org/jira/browse/COMPRESS-659".
The affected version is 1.26.0 (it is the version used by dependencyCheck from the version 9.0.10)

An update to version Commons Compress 1.26.1 would probably fix the problem.

from dependency-check-gradle.

jeremylong avatar jeremylong commented on August 29, 2024 1

fixed with jeremylong/DependencyCheck#6585

from dependency-check-gradle.

ina-lieder avatar ina-lieder commented on August 29, 2024

It looks like it's related to:

"Commons-compress 1.26.0 contains changes to make use of commons-codec,
rather than its own copy of files, but I see that the POM marks
commons-codec as optional."

-> https://www.mail-archive.com/[email protected]/msg74958.html

from dependency-check-gradle.

jeremylong avatar jeremylong commented on August 29, 2024

I wish I would have re-read this issue an hour ago... Temporary fix is likely just updating the current workaround:

https://github.com/dependency-check/dependency-check-gradle?tab=readme-ov-file#gradle-build-environment

/buildSrc/build.gradle

dependencies {
    constraints {
        // org.owasp.dependencycheck needs at least this version of jackson. Other plugins pull in older versions..
        add("implementation", "com.fasterxml.jackson:jackson-bom:2.16.1")
        // org.owasp.dependencycheck needs these versions. Other plugins pull in older versions..
        add("implementation", "org.apache.commons:commons-lang3:3.14.0")
        add("implementation", "org.apache.commons:commons-text:1.11.0")
    }
    compileOnly 'commons-codec:commons-codec:1.16.1'
}

from dependency-check-gradle.

jeremylong avatar jeremylong commented on August 29, 2024

Did you notice the typo I made in the suggestion?

/buildSrc/build.gradle

dependencies {
    constraints {
        // org.owasp.dependencycheck needs at least this version of jackson. Other plugins pull in older versions..
        add("implementation", "com.fasterxml.jackson:jackson-bom:2.16.1")
        // org.owasp.dependencycheck needs these versions. Other plugins pull in older versions..
        add("implementation", "org.apache.commons:commons-lang3:3.14.0")
        add("implementation", "org.apache.commons:commons-text:1.11.0")
    }
    compileOnly 'commons-codec:commons-codec:1.26.1'
}

from dependency-check-gradle.

ina-lieder avatar ina-lieder commented on August 29, 2024

@jeremylong thank you for your answer!

Im not sure whar the correct correction should be :) The last published version of commons-codec is, like suggested in the first fix, the v1.16.1 (https://mvnrepository.com/artifact/commons-codec/commons-codec)

If you mean, we should force the gradle resolution of commons-compress to v1.26.1 - it's allready done in our projects and the error remains the same..

from dependency-check-gradle.

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.