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

Invalid JSON for fmt/1472 #186

Closed
Sembiance opened this issue May 4, 2022 · 3 comments
Closed

Invalid JSON for fmt/1472 #186

Sembiance opened this issue May 4, 2022 · 3 comments
Assignees
Labels

Comments

@Sembiance
Copy link

The file inside the attached XXX_INT.MSA.zip matches against: https://www.nationalarchives.gov.uk/PRONOM/fmt/1472

The PRONOM data has a 'tab' character at the beginning of the MIME field, which causes JSON parsers to choke on siegfried's output.

I don't know how to submit a bug to the PRONOM folks.

@richardlehane richardlehane self-assigned this May 5, 2022
@richardlehane
Copy link
Owner

thanks for reporting this Robert, I'll add a test in to guard against invalid JSON values in the mime field

@Sembiance
Copy link
Author

Awesome, sounds good. PRONOM will also be fixing this in their next release: nationalarchives/pronom#1

Thanks for making siegfried!!

richardlehane added a commit that referenced this issue May 18, 2022
Adds a test to check JSON validity and
trims space from MIME, name and version fields.
@richardlehane
Copy link
Owner

fixed in v1.9.3

richardlehane added a commit that referenced this issue Mar 20, 2023
Adds a test to check JSON validity and
trims space from MIME, name and version fields.
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

2 participants