Thank you for the suggestion. I tried downloading the file in Edge, Chrome and Firefox on a Windows PC from home (via VPN) and on the Ubuntu machine itself that runs DSpace. I did it before and after logging as admin. I tried inPrivate/Incognito mode. In all cases, the pdf opens in the browser and I can read it in its entirety, but when I click "Download", it goes to 773 kb out of 776, and then I get a finelename.pdf.crdownload file downloaded and a message that the browser couldn't download the file.
When I try in Safari and Chrome on iPhone, after viewing the PDF, when I click on download, I see "err_connection_closed", but that probably doesn't explain why it wouldn't download even on the server itself. dspace.log has many lines, including these: INFO 3834015a-5783-403d-ba1b-085b68787b0e 64a217ee-6830-48b5-8558-d6140a123bc9 org.dspace.usage.LoggerUsageEventListener @ [email protected]::view_item:handle=12345/1916 INFO unknown 778fd02b-07ff-4e37-a846-561a88054545 org.dspace.app.rest.utils.DSpaceAPIRequestLoggingFilter @ Before request [GET /server/opensearch/search/search] originated from unknown INFO 08de3499-a27b-474b-aa4c-07fbf0f066cf 5d55a1b2-1984-4213-a061-39e7a6e4cff2 org.dspace.app.rest.utils.DSpaceAPIRequestLoggingFilter @ Before request [GET /server/api/system/scripts/metadata-import] originated from / WARN 08de3499-a27b-474b-aa4c-07fbf0f066cf 5d55a1b2-1984-4213-a061-39e7a6e4cff2 org.dspace.app.rest.exception.DSpaceApiExceptionControllerAdvice @ Authentication is required (status:401 exception: Access is denied at: org.springframework.security.access.vote.AffirmativeBased.decide(AffirmativeBased.java:73)) INFO 08de3499-a27b-474b-aa4c-07fbf0f066cf a300fb4f-141b-42b9-a403-1352ba5844a1 org.dspace.app.rest.utils.DSpaceAPIRequestLoggingFilter @ Before request [GET /server/api/core/items/6a40502a-a91b-4154-8f5f-19fd4ed69288] originated from / INFO 08de3499-a27b-474b-aa4c-07fbf0f066cf 98bdb7b6-51ff-4b43-91dc-d36d1a40d668 org.dspace.app.rest.utils.DSpaceAPIRequestLoggingFilter @ Before request [GET /server/api/authz/authorizations/search/object] originated from /items/6a40502a-a91b-4154-8f5f-19fd4ed69288/full WARN unknown unknown org.dspace.app.rest.security.jwt.JWTTokenHandler @ XXX.XXX.XXX.XXX tried to use an expired or non-valid token INFO unknown 21ea0a82-e9a2-4235-89a9-2043f6411e07 org.dspace.app.rest.utils.DSpaceAPIRequestLoggingFilter @ Before request [GET /server/api/core/bitstreams/137aabe1-6fb9-49d9-8fe6-e3ff81332964/content] originated from https://mydomain.com/server/api/core/bitstreams/137aabe1-6fb9-49d9-8fe6-e3ff81332964/content?authentication-token=eyJhbGciOiJIUzI1NiJ9.eyJlaWQiOiJiZWMwYWNmMS04NDFjLTRiNmQtYmM5Yi02OTQ0OWU2OWRjMWIiLCJzZyI6W10sImF1dGhlbnRpY2F0aW9uTWV0aG9kIjoicGFzc3dvcmQiLCJleHAiOjE2NjkxNzA2NDB9.0jKqlv027PbO4QTgGWx06swXby_oKee-qsIRsUmlPRM Finally, browser's console shows these 2 lines: The response for 'https://mydomain.com/server/api/discover/search?configuration=default' has the self link 'https://ec.msvu.ca/server/api/discover/search'. These don't match. This could mean there's an issue with the REST endpoint main.3bafce0befaeaf6e.js:1:181849 The response for 'https://mydomain.com/server/api/core/items/e56a5422-b32b-4000-95dd-86467ef21c35/bundles?size=9999' has the self link 'https://ec.msvu.ca/server/api/core/items/e56a5422-b32b-4000-…es?embed=primaryBitstream&embed=bitstreams/format&size=1000'. These don't match. This could mean there's an issue with the REST endpoint main.3bafce0befaeaf6e.js:1:181849 Can any of this be relevant? On Tuesday, November 22, 2022 at 3:57:25 p.m. UTC-4 [email protected] wrote: > Seems like it is either a browser or a connection issue. Try another > browser or go into Incognito/InPrivate/Private mode and try it. > > On Tuesday, November 22, 2022 at 10:13:28 PM UTC+3 Night Librarian wrote: > >> I have 7.4 on Ubuntu 20.04, with Tomcat 9. I can view pdfs in the browser >> but downloading doesn't work and I end up with finelename.pdf.crdownload >> files. I don't see errors in dspace.log, only [info] and [warn] entries. >> >> Where should I look first to fix it? >> > -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/5e39f24e-8965-4df2-923f-6875c9945149n%40googlegroups.com.
