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 @ ad...@mydomain.com::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
Finally, browser's console shows these 2 lines:
Can any of this be relevant?