Closed m1kit closed 3 years ago
@m1kit Thanks a lot for this fix! PR looks good to me. I'll wait for some comments from other maintainers.
@Ugtan How did detailsUrl
used to work beforebecause if it contains the html url, response won't be converted to json. Aslo, did it used to contain the relative url or absolute?
@goneall Have we changed license list schema recently?
@goneall Have we changed license list schema recently?
There was a significant change to the tool that generates the license list data - that may have accidentally changed the format.
There was a significant change to the tool that generates the license list data - that may have accidentally changed the format.
@goneall Could you tell me which commit includes that change? I'm unfamiliar with this organization but interested...
Could you tell me which commit includes that change?
@m1kit The LicenseListPublisher is the tool that takes the LicenseList-XML files as input and produces the License-List-Data output. Version 2.2.0 uses a completely re-written library which may have impacted the schema.
I read some code in spdx/tools, spdx/Spdx-Java-Library, and spdx/LicenseListPublisher .
In the old library,
In the new library,
@goneall If these changes are unintentional, I will close this PR unmerged and work on a new PR to spdx/Spdx-Java-Library.
@m1kit Thank you very much for the analysis.
These changes were unintentional, so please go ahead and update the Java library.
I already wrote a fix in the library, now I am updating related tests. I think I can create a new PR in a day👍
It seems https://spdx.org/licenses/licenses.json returns relative urls and the field for json is
reference
, notdetailsUrl
.This is an error I got, and this PR is a fix for the error.