-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Reduce multiplicities in .NET scans #453
Comments
Sorry for the delayed response on this. Absolutely the dependencies should be combined. This is similar to an issue we have with the ruby analyzers - see #477. I think a similiar approach could work for both (see comments in the other issue on how we might combine these). However, if after looking at the code you think there is a better place to combine the analyzers let me know. If you have time to work on a PR I would truly appreciate it. Best Regards, --Jeremy |
Hi Jeremy, I'd like to work on it, but I won't probably do it this week. Regards, |
I guess Dependency objects don't have a concept of a parent dependency? Trying to figure out the most elegant way to handle this, and I'm not sure the interior analyzers that "matter" (AssemblyAnalyzer, for example) have a way of "knowing" that this is actually within an extracted nupkg to add the evidence to that. |
Other analyzers set the packagePath and then the dependency bundling Jeremy On Nov 12, 2016 7:24 PM, "colezlaw" [email protected] wrote:
|
Ah - it probably could, since it just sees a DLL - I just didn't know about On Sat, Nov 12, 2016 at 8:57 PM Jeremy Long [email protected]
|
I think the package path may be named incorrectly too. That came in as part --Jeremy On Mon, Nov 14, 2016 at 6:38 PM, colezlaw [email protected] wrote:
|
ODC groups libraries by file content (actually by hashes). This works well in Java world.
This is unfortunately not the case in the .NET world. When I resolve libraries using Nuget and perform a scan on it, I usually get many files for one library:
My goal is to get rid of multiplied items in the reports. I can perform some preprocessing or modify the ODC code. What is the best approach for that? My preferred idea how to implement it:
Don't treat nupkg as a standard ZIP. Files in nupkg archive would be analyzed, but the evidence would be added to the nupkg bundle. This does not skip the extracted DLLs (the #3), but they might be addressed in multiple ways, e.g. by blacklisting hashes of files (maybe just DLLs) found in a nupkg archive or by removing the lib directory before running ODC.
I was also thinking about some special mode that treats a directory as a single item (with some Merkle-tree-based hashing), which should achieve similar results as grouping by nupkg, but this approach would be more complex and more general. While the increased complexity is rather obvious (not only for the Merkle-tree hashing, but mainly for deciding which directories to group), I am not sure if it has any real benefits.
Should I start implementing the nupkg grouping?
Original thread: https://groups.google.com/forum/#!topic/dependency-check/bOsmmCmKfnM
The text was updated successfully, but these errors were encountered: