blackducksoftware / hub-rest-api-python

HUB REST API Python bindings
Apache License 2.0
89 stars 104 forks source link

Comparison of release dates does not work as intended #199

Open thaljef opened 2 years ago

thaljef commented 2 years ago

At line 122 of get_upstream_copyrights.py, the releasedOn attribute is copied from the BOM component version. It is later used for comparison at line 127:128 to determine if the other component is newer. However, the releasedOn date for a BOM component version seems to always be the date of the scan that detected the component, rather than the release date of the underlying component version. I don't know if that is the intended behavior of the API, but it sure seems suspicious. Either way, the code written here doesn't work as intended.