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

cloud files not available for download #587

Open
NoraRamsey opened this issue Dec 30, 2024 · 5 comments
Open

cloud files not available for download #587

NoraRamsey opened this issue Dec 30, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@NoraRamsey
Copy link
Collaborator

NoraRamsey commented Dec 30, 2024

I've added files individually via s3 to each work in this collection: https://bl.iro.bl.uk/collections/d834425a-b5e0-48df-9486-8a0f6a704882?locale=en

I first uploaded Introduction to EAP and Closing Remarks as a test. These Worked. A day later I uploaded the files for the rest of the collection.

After over a week the I am unable to view or download the files.

For now, I have privated the files.

@NoraRamsey NoraRamsey converted this from a draft issue Dec 30, 2024
@NoraRamsey NoraRamsey added the bug Something isn't working label Dec 30, 2024
@grahamjevon
Copy link
Collaborator

After doing some trial and error uploads, the issue seems to be isolated to MP4 files (zip files and csv files seem ok at least).

Abridged user story of the issue:

  • Add work via UI and upload MP4 file via "Add cloud files" option
  • Work is added successfully and the file name is present in the items list
Image
  • However, the file size column in the items list is blank, and when a user clicks "Download", the download url says "page does not exist"
Image

@cziaarm
Copy link
Collaborator

cziaarm commented Jan 6, 2025

No repeatable: File sizes are displayed and have tested both mp4s and they can be downloaded. It is possible that previously they had not been fully processed

@NoraRamsey
Copy link
Collaborator Author

Hi @cziaarm unfortunately we are still experiencing the issue. Looks like my link above didn't appear, but they are in this collection: https://bl.iro.bl.uk/collections/d834425a-b5e0-48df-9486-8a0f6a704882?locale=en

Introduction to EAP and Closing Remarks should be working, but the others are not.

@cziaarm
Copy link
Collaborator

cziaarm commented Jan 6, 2025

OK gotem

@cziaarm
Copy link
Collaborator

cziaarm commented Jan 7, 2025

Caused by mis-handling of filenames with whitespace in them in direct to s3 persistence (somewhere round 'ere: https://github.com/notch8/britishlibrary/blob/main/app/actors/hyrax/actors/file_actor_decorator.rb#L10-L14)

Short term workaround : re-upload the files in question with no whitespace (e.g. "Day 01_Welcome remarks.mp4" becomes Day_01_Welcome remarks.mp4)

@NoraRamsey NoraRamsey moved this from Ready for Development (Bugs) to Done in britishlibrary Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

3 participants