spdx / tools

SPDX Tools
Apache License 2.0
123 stars 68 forks source link

Converting error due to the white space in license name #256

Closed JustinWonjaePark closed 3 years ago

JustinWonjaePark commented 3 years ago

As far as I know, white spaces are allowed (and multiple white spaces are treated as single white space) in a License Name Appendix II > 3. Whitespace

So, I made a spreadsheet that contains license name "LicenseRef-MIT-like-License c-ares" . And then, I tried to convert it to RDF using SPDX Tool Version: 2.2.0 (Actually I downloaded 2.2.2 but I get 2.2.0 when I ask with 'Version' option) Now I get an error as follows.

[main] ERROR org.spdx.spdxspreadsheet.AbstractSpreadsheet - Invalid license information in in files for license LicenseRef-MIT-like-License c-ares row 2 detail: Invalid license expression. Expecting more operands. in PackageInfo sheet.

Please let me know if I am missing something.

goneall commented 3 years ago

White space is allowed in the license name, but not in the license ID. See the License Expressions Appendix for the syntax on the license ID's.

JustinWonjaePark commented 3 years ago

Thanks @goneall ! I misunderstood concept of License Identifier and License Name.