-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
6.0.1 - RetireJS checks frequently fail due to corrupt jsrepository.json file #2810
Comments
Are you saying just running the same command over and over and the error is occurring? Or is this only happening with multiple parallel scans? |
Hi @jeremylong, Thanks for the quick response. |
I do have the same error, but for me it never worked (integrated it only today). |
Can anyone experiencing this error please post a debug log (i.e. add |
Much like we do with the H2 database - I just added code to copy the retireJS repo before reading it: |
Can anyone experiencing this issue confirm if the fix in 6.0.2 resolves this issue? |
Hello Jeremy, [ERROR] Failed to execute goal org.owasp:dependency-check-maven:6.0.2:check (default) on project toto: One or more exceptions occurred during dependency-check analysis: One or more exceptions occurred during analysis: |
Well, deleting the file did not help, but the purge worked. |
Hello Jeremy, |
Can anyone facing this issue zip up their jsrepository.json (from the data directory) and share it? |
Hi Jeremy-- My jsrepository.json file was an empty file. But I grabbed a replacement from https://github.com/RetireJS/retire.js/blob/master/repository/jsrepository.json then put it in the data directory. This seems to have allowed me to run without errors. The file is empty because when I initially ran the dependency check the following error occurred retrieving the file:
This issue occurs in both 5.3.2 (which used to work) and 6.0.2. |
Describe the bug
I am facing the same issue which is described in #2642
The above issue is closed in 6.0.1 and I am using maven dependency 6.0.1 still I am facing the same issue.
Dependency added in pom.xml
org.owasp dependency-check-maven 6.0.1 checkError log
[ERROR] Failed to initialize the RetireJS repo:
/Users/<userid>/.m2/repository/org/owasp/dependency-check-utils/6.0.1/../../dependency-check-data/5.0/jsrepository.json
appears to be malformed. Please delete the file or run the dependency-check purge command and re-try running dependency-check.Version of dependency-check used
The problem occurs using version 6.0.1 of the maven plugin
Log file
[ERROR] Failed to initialize the RetireJS repo:
/Users/<userid>/.m2/repository/org/owasp/dependency-check-utils/6.0.1/../../dependency-check-data/5.0/jsrepository.json
appears to be malformed. Please delete the file or run the dependency-check purge command and re-try running dependency-check.To Reproduce
Run the mvn clean install multiple times.
Expected behavior
Build shouldn't fail saying that jsrepository.json appears to be malformed.
Additional context
NA
The text was updated successfully, but these errors were encountered: