Skip to content
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

fix(ReportUtils): Include files with 'No_license_found' as well #2745

Conversation

JanAltenberg
Copy link
Contributor

Description

Since the changes for de-duplication of licenses with the same SPDX ID in commit e01006b , exported reports do not contain entries for files fith 'No_license_found'. These have to be included (and were included before the above mentioned commit).

Changes

This commit adjusts the behaviour of addScannerResults() in a way, that files with 'No_license_found' will be reported.

How to test

  1. Take any FOSSology version starting with commit e01006b
  2. Upload and clear a package (I've uploaded busybox-1.36.1.tar.bz2 and imported an existing RDF report from the OSSelot project)
  3. Create a SPDX TV or RDF export

Without these changes the reports won't contain any entries for all files with 'No_license_found' as scanner result (for busybox, Makefile.custom in the top level directory is such a file). With these changes applied, the reports will contain the relevant entries.

Since the changes for de-duplication of licenses with the same SPDX ID, exported
reports do not contain any files with 'No_license_found'. But these have to be
reported as well. Change the behaviour of addScannerResults() to include these
files again.

Signed-off-by: Jan Altenberg <[email protected]>
Copy link
Contributor

@shaheemazmalmmd shaheemazmalmmd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good. Tested works as expected.

@shaheemazmalmmd shaheemazmalmmd merged commit f0ed50e into fossology:master May 27, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants