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
direct download causes RedirectException #7060
Comments
Looks like the 500 error is being generated by the api.errorhandlers.ThrowableHandler class. Perhaps what's needed is a class to implement ExceptionMapper? Not sure why this would have changed from 4.20 to current develop branch though unless some default handler for that has disappeared/not been configured. |
That seems to work - I'll put in a PR. |
/me added a lengthy discussion about what |
…/7060 Fix for #7060 direct download causes RedirectException
On the current develop branch, setting -Ddataverse.files.s3.download-redirect=true and trying to download a file gives me:
{
"status": "ERROR",
"code": 500,
"type": "RedirectionException",
"message": "Internal server error. More details available at the server logs.",
"incidentId": "113fbb33-f4e0-402e-b9a9-5417c3c9822b"
}
If I remove that jvm option, I can download the file, so I think the underlying s3 store is configured correctly. WHen I use:
bin/asadmin set-log-levels edu.harvard.iq.dataverse.api.DownloadInstanceWriter=FINE
the presigned download URL that shows in the log is actually correct/works, so it looks like something has changed in how the redirect is processed in Dataverse.
FWIW: I used the ansible scripts to create an EC2 instance and configured s3 manually after that.
The text was updated successfully, but these errors were encountered: