-
-
Notifications
You must be signed in to change notification settings - Fork 598
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
Composer Meta Analyzer Exceptions #2134
Comments
I see about 40 occurrences of this error on a daily basis. All related to magento modules. I did check a couple of the responses. I attached the responses (with a .txt extension as github won't allow me to upload .json files). So far I see two cases:
Not sure if there is something meaningful we can do here. In the first case the module seems to have a completely different name and is replacing 10s of other modules. Sometimes the components are named like If only the namespace is changed, we could use the metadata from the new component with the changed namespace. But I'm not familiar enough with The problem with ignoring the result is that the result won't get cached. Would it make sense to have an extra field on This could also be of help for other usecases. For example there are components end of life, and do not have a newer version available. So everything looks OK in DT. This new flag might be helpful for when in the future we can get that flag from somewhere else, or when users want to flag a component manually to make it visible in DT and/or result in policy violations. wdyt? adobe-ims.json.txt |
Composer packages get outdated. Composer package The following information is based on latest DependencyTrack: The issue you are facing regarding A possible code-fix could be: check if the expected key exists in the response, and just do nothing if it is missing. |
Yes, that is what I mentioned above. But there are downsides to just ignoring so I suggested maybe a flag is needed to mark packages for which DT cannot find any metadata. But we could raise that as a separate / bigger issue and go for the quickfix here. |
I'd suggest switching to the packagist latest API (endpoint Then we would have a proper response we could tailor the result on. |
Yes, but still the question remains if we should flag the packages in case of a 404 or other problems retrieving metadata (also for other package managers/repos). |
re: #2134 (comment) Don't like the idea of flagging them. But that's just my 2 cents. |
The flag I mentioned above is mainly an extra field on |
Hmm looks like there is already a |
Since #2129, |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Current Behavior:
Log is full of Exceptions of the Composer Meta Analyzer:
Steps to Reproduce:
Expected Behavior:
No exceptions or another log level for non critical errors
Environment:
Additional Details:
Source code: https://github.com/DependencyTrack/dependency-track/blob/master/src/main/java/org/dependencytrack/tasks/repositories/ComposerMetaAnalyzer.java#L101
The text was updated successfully, but these errors were encountered: