SCANOSS Engine v5.4.27
π Improvements
-P, --purl command β source paths (oss_path)
The file-MD5 lookup now returns, in addition to the purls, url hashes and best KB rank, the source path of each url hash in a new oss_path JSON field.
- New
url_hash_tstructure that keeps each hash together with its path, so they stay aligned when the list is sorted. - The path is decrypted from the file table and the leading version-bearing directory is stripped (e.g.
libfoo-1.2.3/src/a.cβsrc/a.c), applying the same rule asfill_component_path.
-C, --url-hash command β multiple components and simplified output
- Now accepts a single url hash or a comma-separated list, returning the details of one or more components.
- Simplified output in this mode: removed the
latestfield and the enrichment blocks (licenses, health, dependencies, copyrights and vulnerabilities), which don't apply to this direct lookup. - Removed the workaround that pointed
file_md5_reftourl_md5(no longer needed).
π Fixes
License report fix (osadl_print_license)
Fixes a JSON corruption when printing OSADL licenses:
- Only flat license entries are accepted. If the object contains a nested object (a structural key, such as the top-level
"licenses"), it is skipped instead of copied, avoiding the unbalanced braces that broke the JSON. - More robust handling when the opening
{character is not found (prevents a possible null dereference).
π§ Internal
look_for_version()is no longerstaticand is now exposed incomponent.hfor reuse inpurl_scan.c.- Help text (
-Pand-C) updated to reflect the new behavior. - Version bumped to
5.4.27.