-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarification: reuse spdx
and FileCopyrightText
values containing XML entities
#1126
Comments
reuse spdx
and FileCopyrightText
values containing XML entitiesreuse spdx
and FileCopyrightText
values containing XML entities
andreashaerter
added a commit
to foundata/ansible-skeletons
that referenced
this issue
Feb 17, 2025
<> might break in unknown tools, get filtered, or cause issues.[1] Let's use simple parentheses instead. [1] Example: fsfe/reuse-tool#1126
andreashaerter
added a commit
to foundata/proxmox-pve-backup-usb
that referenced
this issue
Feb 17, 2025
<> might break in unknown tools, gets filtered, or cause issues.[1] Let's use simple parentheses instead. [1] Example: fsfe/reuse-tool#1126
andreashaerter
added a commit
to foundata/guidelines
that referenced
this issue
Feb 17, 2025
<> might break in unknown tools, gets filtered, or cause issues.[1] Let's use simple parentheses instead. [1] Example: fsfe/reuse-tool#1126
andreashaerter
added a commit
to foundata/roundcube-plugin-identity-from-config
that referenced
this issue
Feb 17, 2025
<> might break in unknown tools, gets filtered, or cause issues.[1] Let's use simple parentheses instead. [1] Example: fsfe/reuse-tool#1126
andreashaerter
added a commit
to foundata/roundcube-plugin-identity-from-directory
that referenced
this issue
Feb 17, 2025
<> might break in unknown tools, gets filtered, or cause issues.[1] Let's use simple parentheses instead. [1] Example: fsfe/reuse-tool#1126
andreashaerter
added a commit
to foundata/chocolatey-sendkeys.extension
that referenced
this issue
Feb 17, 2025
<> might break in unknown tools, gets filtered, or cause issues.[1] Let's use simple parentheses instead. [1] Example: fsfe/reuse-tool#1126
andreashaerter
added a commit
to foundata/chocolatey-sendmouseclick.extension
that referenced
this issue
Feb 17, 2025
<> might break in unknown tools, gets filtered, or cause issues.[1] Let's use simple parentheses instead. [1] Example: fsfe/reuse-tool#1126
andreashaerter
added a commit
to foundata/chocolatey-usewindow.extension
that referenced
this issue
Feb 17, 2025
<> might break in unknown tools, gets filtered, or cause issues.[1] Let's use simple parentheses instead. [1] Example: fsfe/reuse-tool#1126
andreashaerter
added a commit
to foundata/roundcube-plugin-add-buttons
that referenced
this issue
Feb 17, 2025
<> might break in unknown tools, gets filtered, or cause issues.[1] Let's use simple parentheses instead. [1] Example: fsfe/reuse-tool#1126
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Small questions about
FileCopyrightText: <text>...</text>
and values containing<
and>
:1) Do they need encoding? If so, there is a bug.
Example:
REUSE.toml
, which includesSPDX-FileCopyrightText = "foundata GmbH <https://foundata.com>"
. (The repository adheres to the latest REUSE specification.)When generating an SPDX SBOM file, there are
<text>
tags whose values are not escaped or lack entity encoding:I am not into the details of the SPDX 2.1 file format, so I can only guess
<text>
values need XML entity encoding, like replacing<https://foundata.com></text>
with<https://foundata.com<</text>
Counterpoint: And as far as I can tell, the copyrightText in 3.0.1 allows the Range
xs-string
which does not need encoding? Is this correct?2) If no encoding is needed: At least strip
</text>
?Even if no entity encoding is needed, I can also put
</text>
into the values (e.g.SPDX-PackageSupplier = "foundata GmbH</text> <https://foundata.com>"
This results in
FileCopyrightText: <text>foundata GmbH</text> <https://foundata.com></text>
(as expected) which leads to validation errors at least topyspdxtools_parser --file reuse.spdx
v0.7.1) (also some kind of expected):3) What is the recommendation?
We are used to put plain URLs into
<URI>
like it was recommended for plaintext Emails and Markdown since decades. But as it seems, this might be a bit problematic forSPDX-PackageSupplier
. What do you recommend? Should this be mentioned in the docs?The text was updated successfully, but these errors were encountered: