Skip to content
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

Validating an SPDX file with colon in name fails #376

Closed
vargenau opened this issue Jun 9, 2022 · 12 comments
Closed

Validating an SPDX file with colon in name fails #376

vargenau opened this issue Jun 9, 2022 · 12 comments
Labels

Comments

@vargenau
Copy link
Contributor

vargenau commented Jun 9, 2022

In the online validator, I try to validate a file called mariadb:latest.spdx

I get a banner with the following error message:

File /spdx/src/app/media/AnonymousUser/1654771839/mariadb%3Alatest.spdx not found.
@rtgdk
Copy link
Collaborator

rtgdk commented Aug 15, 2022

@vargenau Which OS are you on when you upload this file? colon are not prohibited in windows world. Can you try without colon filename?

@vargenau
Copy link
Contributor Author

It was a Linux machine, Ubuntu.

The bug is that the colon ":" has been encoded as "%3A". It should not have been.

@BanulaKumarage
Copy link
Contributor

Hi, @rtgdk I am working on a windows environment. As you said, colons are prohibited in windows. Does this error occur in other characters except for the colon? If so I can try with that to reproduce the error. Otherwise is there any other way to reproduce this error? Please assist me on this.

@vargenau
Copy link
Contributor Author

Yes, colons (and some other characters) are forbidden on Windows.
But colons are legal on Unix/Linux.
That is precisely the issue, you should not fail in that case.

@rtgdk
Copy link
Collaborator

rtgdk commented Mar 26, 2023

@BanulaKumarage You can try to download a file which has colon in it's name and try opening it in Windows or through the onlint tool. You should be able to reproduce it.

There should a way to escape colon character or rename it before opening in windows.

@BanulaKumarage
Copy link
Contributor

Thanks @rtgdk I will try that

@BanulaKumarage
Copy link
Contributor

image

Recreated the issue. Working on it

BanulaKumarage added a commit to BanulaKumarage/spdx-online-tools that referenced this issue Apr 2, 2023
@BanulaKumarage
Copy link
Contributor

@rtgdk @vargenau Made PR #460 to fix this. Please review.

@vargenau
Copy link
Contributor Author

vargenau commented Apr 3, 2023

Hi @BanulaKumarage
I cannot test if the fix is not deployed.

@vargenau
Copy link
Contributor Author

Has the fix been deployed on https://tools.spdx.org/app/validate/ ?

I still have the error.

@BanulaKumarage
Copy link
Contributor

Has the fix been deployed on https://tools.spdx.org/app/validate/ ?

I still have the error.

Its not merged it yet.

@vargenau
Copy link
Contributor Author

vargenau commented Jul 3, 2023

This has been fixed in https://github.com/spdx/spdx-online-tools/releases/tag/v1.2.1

You can close the ticket.

@goneall goneall closed this as completed Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants