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

some files can't be downloaded #1074

Closed
Tracked by #1073
kosarko opened this issue Oct 27, 2023 · 2 comments
Closed
Tracked by #1073

some files can't be downloaded #1074

kosarko opened this issue Oct 27, 2023 · 2 comments

Comments

@kosarko
Copy link
Member

kosarko commented Oct 27, 2023

Not sure what the pattern is, but the browser shows just a whitelabel 500 error or if using curl

{"timestamp":"2023-10-27T15:38:02.929+00:00","status":500,"error":"Internal Server Error","message":"An exception has occurred","path":"/repository/api/core/bitstreams/handle/11234/1-3185/PDT-C-1.0.zip"}

the backend log shows:

2023-10-27 17:27:07,244 ERROR unknown d721871a-b70f-4670-aa88-84cd4d9cca47 org.dspace.app.rest.exception.DSpaceApiExceptionControllerAdvice @ An exception has occurred (status:500)
java.lang.RuntimeException: java.lang.RuntimeException: Bitstream Extensions cannot be empty for downloading/previewing bitstreams.
        at org.dspace.app.rest.MetadataBitstreamController.downloadSingleFile(MetadataBitstreamController.java:143) ~[classes/:7.5]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
        at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) ~[spring-web-5.3.20.jar:5.3.20]
        at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150) ~[spring-web-5.3.20.jar:5.3.20]


2023-10-27 17:29:55,330 DEBUG unknown unknown org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping @ Mapped to org.dspace.app.rest.MetadataBitstreamController#downloadSingleFile(String, String, String, HttpServletRequest, HttpServletResponse)                      2023-10-27 17:29:55,331 INFO  unknown 2ac1ab42-e8d8-4bb2-ad76-1ade95d2b9c0 org.dspace.app.rest.utils.DSpaceAPIRequestLoggingFilter @ Before request [GET /repository/api/core/bitstreams/handle/11234/1-3185/PDT-C-1.0.zip] originated from https://ufal-point-dev.ufal.hide.ms.mff.cuni.cz/items/90ba1c56-389d-4c88-b975-09ed25a2b31d
2023-10-27 17:29:55,331 DEBUG unknown 2ac1ab42-e8d8-4bb2-ad76-1ade95d2b9c0 org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping @ Mapped to org.dspace.app.rest.MetadataBitstreamController#downloadSingleFile(String, String, String, HttpServletRequest, HttpServletResponse)                                                                                                                                            2023-10-27 17:29:55,350 ERROR unknown 2ac1ab42-e8d8-4bb2-ad76-1ade95d2b9c0 org.dspace.app.rest.MetadataBitstreamController @ Bitstream Extensions cannot be empty for downloading/previewing bitstreams.                                                                                              2023-10-27 17:29:55,351 DEBUG unknown 2ac1ab42-e8d8-4bb2-ad76-1ade95d2b9c0 org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver @ Using @ExceptionHandler org.dspace.app.rest.exception.DSpaceApiExceptionControllerAdvice#handleGenericException(HttpServletRequest, HttpServletResponse, Exception)
2023-10-27 17:29:55,351 ERROR unknown 2ac1ab42-e8d8-4bb2-ad76-1ade95d2b9c0 org.dspace.app.rest.exception.DSpaceApiExceptionControllerAdvice @ An exception has occurred (status:500)
java.lang.RuntimeException: java.lang.RuntimeException: Bitstream Extensions cannot be empty for downloading/previewing bitstreams.
        at org.dspace.app.rest.MetadataBitstreamController.downloadSingleFile(MetadataBitstreamController.java:143) ~[classes/:7.5]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]                                                                     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
@kosarko kosarko mentioned this issue Oct 27, 2023
3 tasks
@kosarko kosarko added the v7 label Nov 15, 2023
@milanmajchrak
Copy link
Collaborator

Fixed here: dataquest-dev#453

@kosarko
Copy link
Member Author

kosarko commented Nov 7, 2024

The downloads work the download instructions for command line don't. @milanmajchrak can you comment on #1130 ?

But closing this.

@kosarko kosarko closed this as completed Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants