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

quiesce missing thumbnail NPE #10181

Closed
wants to merge 2 commits into from
Closed

Conversation

donsizemore
Copy link
Contributor

What this PR does / why we need it:

When a PDF thumbnail isn't present (and won't be generated), Payara logs a 500 error.

Which issue(s) this PR closes:

Closes #10179

Special notes for your reviewer:

It's a cherry-pick.

Suggestions on how to test this:

Upload a PDF of larger filesize than the PDF thumbnail filesize threshold, and call the dataset/datafile pages or the datafile access API endpoint as pasted in the issue.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

No

Is there a release notes update needed for this change?:

No

Additional documentation:

None

@donsizemore donsizemore requested a review from qqmyers December 12, 2023 19:58
Copy link
Member

@pdurbin pdurbin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't test it but it looks like it'll prevent an NPE.

@qqmyers qqmyers added the Size: 0.5 A percentage of a sprint. 0.35 hours label Dec 12, 2023
@coveralls
Copy link

Coverage Status

coverage: 20.173%. remained the same
when pulling a9f091c on 10179_PDF_thumbnail_NPE
into 1f9e10c on develop.

Copy link

📦 Pushed preview images as

ghcr.io/gdcc/dataverse:10179-PDF-thumbnail-NPE
ghcr.io/gdcc/configbaker:10179-PDF-thumbnail-NPE

🚢 See on GHCR. Use by referencing with full name as printed above, mind the registry name.

@pdurbin
Copy link
Member

pdurbin commented May 22, 2024

@donsizemore can you please resolve the merge conflicts? Thanks.

@pdurbin
Copy link
Member

pdurbin commented May 23, 2024

This fix was already added and merged in 5d6d016 as part of this PR by @stevenwinship:

Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Size: 0.5 A percentage of a sprint. 0.35 hours
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PDF datafile without thumbnail results in (logged) 500 error
4 participants