-
-
Notifications
You must be signed in to change notification settings - Fork 553
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix package resource assign bug for jar manifests
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
- Loading branch information
1 parent
824163f
commit 02859cf
Showing
9 changed files
with
366 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -188,7 +188,9 @@ | |
"path": "jackson-dataformat-xml-2.13.5", | ||
"type": "directory", | ||
"package_data": [], | ||
"for_packages": [], | ||
"for_packages": [ | ||
"pkg:jar/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758" | ||
], | ||
"detected_license_expression": null, | ||
"detected_license_expression_spdx": null, | ||
"license_detections": [], | ||
|
319 changes: 319 additions & 0 deletions
319
tests/packagedcode/data/maven_misc/assemble/spring-web-5.3.20-jar-expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,319 @@ | ||
{ | ||
"packages": [ | ||
{ | ||
"type": "jar", | ||
"namespace": null, | ||
"name": "spring-web", | ||
"version": "5.3.20", | ||
"qualifiers": {}, | ||
"subpath": null, | ||
"primary_language": null, | ||
"description": null, | ||
"release_date": null, | ||
"parties": [], | ||
"keywords": [], | ||
"homepage_url": null, | ||
"download_url": null, | ||
"size": null, | ||
"sha1": null, | ||
"md5": null, | ||
"sha256": null, | ||
"sha512": null, | ||
"bug_tracking_url": null, | ||
"code_view_url": null, | ||
"vcs_url": null, | ||
"copyright": null, | ||
"holder": null, | ||
"declared_license_expression": "apache-2.0", | ||
"declared_license_expression_spdx": "Apache-2.0", | ||
"license_detections": [ | ||
{ | ||
"license_expression": "apache-2.0", | ||
"license_expression_spdx": "Apache-2.0", | ||
"matches": [ | ||
{ | ||
"license_expression": "apache-2.0", | ||
"license_expression_spdx": "Apache-2.0", | ||
"from_file": "spring-web-5.3.20-jar/spring-web-5.3.20.jar-extract/META-INF/notice.txt", | ||
"start_line": 4, | ||
"end_line": 6, | ||
"matcher": "2-aho", | ||
"score": 100.0, | ||
"matched_length": 27, | ||
"match_coverage": 100.0, | ||
"rule_relevance": 100, | ||
"rule_identifier": "apache-2.0_701.RULE", | ||
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-2.0_701.RULE" | ||
} | ||
], | ||
"detection_log": [], | ||
"identifier": "apache_2_0-dda7c7b6-8825-2c52-d55b-46f66d469baa" | ||
} | ||
], | ||
"other_license_expression": null, | ||
"other_license_expression_spdx": null, | ||
"other_license_detections": [], | ||
"extracted_license_statement": null, | ||
"notice_text": null, | ||
"source_packages": [], | ||
"is_private": false, | ||
"is_virtual": false, | ||
"extra_data": {}, | ||
"repository_homepage_url": null, | ||
"repository_download_url": null, | ||
"api_data_url": null, | ||
"package_uid": "pkg:jar/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758", | ||
"datafile_paths": [ | ||
"spring-web-5.3.20-jar/spring-web-5.3.20.jar-extract/META-INF/MANIFEST.MF" | ||
], | ||
"datasource_ids": [ | ||
"java_jar_manifest" | ||
], | ||
"purl": "pkg:jar/[email protected]" | ||
} | ||
], | ||
"dependencies": [], | ||
"license_detections": [ | ||
{ | ||
"identifier": "apache_2_0-dda7c7b6-8825-2c52-d55b-46f66d469baa", | ||
"license_expression": "apache-2.0", | ||
"license_expression_spdx": "Apache-2.0", | ||
"detection_count": 2, | ||
"detection_log": [], | ||
"reference_matches": [ | ||
{ | ||
"license_expression": "apache-2.0", | ||
"license_expression_spdx": "Apache-2.0", | ||
"from_file": "spring-web-5.3.20-jar/spring-web-5.3.20.jar-extract/META-INF/notice.txt", | ||
"start_line": 4, | ||
"end_line": 6, | ||
"matcher": "2-aho", | ||
"score": 100.0, | ||
"matched_length": 27, | ||
"match_coverage": 100.0, | ||
"rule_relevance": 100, | ||
"rule_identifier": "apache-2.0_701.RULE", | ||
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-2.0_701.RULE" | ||
} | ||
] | ||
} | ||
], | ||
"files": [ | ||
{ | ||
"path": "spring-web-5.3.20-jar", | ||
"type": "directory", | ||
"package_data": [], | ||
"for_packages": [], | ||
"detected_license_expression": null, | ||
"detected_license_expression_spdx": null, | ||
"license_detections": [], | ||
"license_clues": [], | ||
"percentage_of_license_text": 0, | ||
"scan_errors": [] | ||
}, | ||
{ | ||
"path": "spring-web-5.3.20-jar/spring-web-5.3.20.jar", | ||
"type": "file", | ||
"package_data": [ | ||
{ | ||
"type": "jar", | ||
"namespace": null, | ||
"name": null, | ||
"version": null, | ||
"qualifiers": {}, | ||
"subpath": null, | ||
"primary_language": null, | ||
"description": null, | ||
"release_date": null, | ||
"parties": [], | ||
"keywords": [], | ||
"homepage_url": null, | ||
"download_url": null, | ||
"size": null, | ||
"sha1": null, | ||
"md5": null, | ||
"sha256": null, | ||
"sha512": null, | ||
"bug_tracking_url": null, | ||
"code_view_url": null, | ||
"vcs_url": null, | ||
"copyright": null, | ||
"holder": null, | ||
"declared_license_expression": null, | ||
"declared_license_expression_spdx": null, | ||
"license_detections": [], | ||
"other_license_expression": null, | ||
"other_license_expression_spdx": null, | ||
"other_license_detections": [], | ||
"extracted_license_statement": null, | ||
"notice_text": null, | ||
"source_packages": [], | ||
"file_references": [], | ||
"is_private": false, | ||
"is_virtual": false, | ||
"extra_data": {}, | ||
"dependencies": [], | ||
"repository_homepage_url": null, | ||
"repository_download_url": null, | ||
"api_data_url": null, | ||
"datasource_id": "java_jar", | ||
"purl": null | ||
} | ||
], | ||
"for_packages": [], | ||
"detected_license_expression": null, | ||
"detected_license_expression_spdx": null, | ||
"license_detections": [], | ||
"license_clues": [], | ||
"percentage_of_license_text": 0, | ||
"scan_errors": [] | ||
}, | ||
{ | ||
"path": "spring-web-5.3.20-jar/spring-web-5.3.20.jar-extract", | ||
"type": "directory", | ||
"package_data": [], | ||
"for_packages": [ | ||
"pkg:jar/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758" | ||
], | ||
"detected_license_expression": null, | ||
"detected_license_expression_spdx": null, | ||
"license_detections": [], | ||
"license_clues": [], | ||
"percentage_of_license_text": 0, | ||
"scan_errors": [] | ||
}, | ||
{ | ||
"path": "spring-web-5.3.20-jar/spring-web-5.3.20.jar-extract/META-INF", | ||
"type": "directory", | ||
"package_data": [], | ||
"for_packages": [ | ||
"pkg:jar/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758" | ||
], | ||
"detected_license_expression": null, | ||
"detected_license_expression_spdx": null, | ||
"license_detections": [], | ||
"license_clues": [], | ||
"percentage_of_license_text": 0, | ||
"scan_errors": [] | ||
}, | ||
{ | ||
"path": "spring-web-5.3.20-jar/spring-web-5.3.20.jar-extract/META-INF/MANIFEST.MF", | ||
"type": "file", | ||
"package_data": [ | ||
{ | ||
"type": "jar", | ||
"namespace": null, | ||
"name": "spring-web", | ||
"version": "5.3.20", | ||
"qualifiers": {}, | ||
"subpath": null, | ||
"primary_language": null, | ||
"description": "", | ||
"release_date": null, | ||
"parties": [], | ||
"keywords": [], | ||
"homepage_url": null, | ||
"download_url": null, | ||
"size": null, | ||
"sha1": null, | ||
"md5": null, | ||
"sha256": null, | ||
"sha512": null, | ||
"bug_tracking_url": null, | ||
"code_view_url": null, | ||
"vcs_url": null, | ||
"copyright": null, | ||
"holder": null, | ||
"declared_license_expression": "apache-2.0", | ||
"declared_license_expression_spdx": "Apache-2.0", | ||
"license_detections": [ | ||
{ | ||
"license_expression": "apache-2.0", | ||
"license_expression_spdx": "Apache-2.0", | ||
"matches": [ | ||
{ | ||
"license_expression": "apache-2.0", | ||
"license_expression_spdx": "Apache-2.0", | ||
"from_file": "spring-web-5.3.20-jar/spring-web-5.3.20.jar-extract/META-INF/notice.txt", | ||
"start_line": 4, | ||
"end_line": 6, | ||
"matcher": "2-aho", | ||
"score": 100.0, | ||
"matched_length": 27, | ||
"match_coverage": 100.0, | ||
"rule_relevance": 100, | ||
"rule_identifier": "apache-2.0_701.RULE", | ||
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-2.0_701.RULE" | ||
} | ||
], | ||
"detection_log": [], | ||
"identifier": "apache_2_0-dda7c7b6-8825-2c52-d55b-46f66d469baa" | ||
} | ||
], | ||
"other_license_expression": null, | ||
"other_license_expression_spdx": null, | ||
"other_license_detections": [], | ||
"extracted_license_statement": null, | ||
"notice_text": null, | ||
"source_packages": [], | ||
"file_references": [], | ||
"is_private": false, | ||
"is_virtual": false, | ||
"extra_data": {}, | ||
"dependencies": [], | ||
"repository_homepage_url": null, | ||
"repository_download_url": null, | ||
"api_data_url": null, | ||
"datasource_id": "java_jar_manifest", | ||
"purl": "pkg:jar/[email protected]" | ||
} | ||
], | ||
"for_packages": [ | ||
"pkg:jar/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758" | ||
], | ||
"detected_license_expression": null, | ||
"detected_license_expression_spdx": null, | ||
"license_detections": [], | ||
"license_clues": [], | ||
"percentage_of_license_text": 0, | ||
"scan_errors": [] | ||
}, | ||
{ | ||
"path": "spring-web-5.3.20-jar/spring-web-5.3.20.jar-extract/META-INF/notice.txt", | ||
"type": "file", | ||
"package_data": [], | ||
"for_packages": [ | ||
"pkg:jar/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758" | ||
], | ||
"detected_license_expression": "apache-2.0", | ||
"detected_license_expression_spdx": "Apache-2.0", | ||
"license_detections": [ | ||
{ | ||
"license_expression": "apache-2.0", | ||
"license_expression_spdx": "Apache-2.0", | ||
"matches": [ | ||
{ | ||
"license_expression": "apache-2.0", | ||
"license_expression_spdx": "Apache-2.0", | ||
"from_file": "spring-web-5.3.20-jar/spring-web-5.3.20.jar-extract/META-INF/notice.txt", | ||
"start_line": 4, | ||
"end_line": 6, | ||
"matcher": "2-aho", | ||
"score": 100.0, | ||
"matched_length": 27, | ||
"match_coverage": 100.0, | ||
"rule_relevance": 100, | ||
"rule_identifier": "apache-2.0_701.RULE", | ||
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-2.0_701.RULE" | ||
} | ||
], | ||
"detection_log": [], | ||
"identifier": "apache_2_0-dda7c7b6-8825-2c52-d55b-46f66d469baa" | ||
} | ||
], | ||
"license_clues": [], | ||
"percentage_of_license_text": 71.05, | ||
"scan_errors": [] | ||
} | ||
] | ||
} |
Binary file added
BIN
+4.18 KB
tests/packagedcode/data/maven_misc/assemble/spring-web-5.3.20-jar/spring-web-5.3.20.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions
6
...en_misc/assemble/spring-web-5.3.20-jar/spring-web-5.3.20.jar-extract/META-INF/MANIFEST.MF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Manifest-Version: 1.0 | ||
Implementation-Title: spring-web | ||
Automatic-Module-Name: spring.web | ||
Implementation-Version: 5.3.20 | ||
Created-By: 1.8.0_332 (Oracle Corporation) | ||
|
6 changes: 6 additions & 0 deletions
6
...ven_misc/assemble/spring-web-5.3.20-jar/spring-web-5.3.20.jar-extract/META-INF/notice.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Spring Framework 5.3.20 | ||
Copyright (c) 2002-2022 Pivotal, Inc. | ||
|
||
This product is licensed to you under the Apache License, Version 2.0 | ||
(the "License"). You may not use this product except in compliance with | ||
the License. |
Oops, something went wrong.