learningequality / learningequality/studio

Create validation to prevent illegal filenames and create migration script to cleanup bad file objects

Open
#5,026 0 comments 0 reactions 1 assignee View on GitHub

@rtibbles is already working on this.

Since Apr 25, 2025.

Dominant language
Python
Stars
191
Forks
307
Avg merge
5d 6h
Merged PRs (30d)
10

Description

This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Sentry Issue: STUDIO-HEZ

FileNotFoundError: storage/7/8/780014-1473318347-25-20-2.9 not found
  File "contentcuration/utils/publish.py", line 598, in create_perseus_zip
    write_assessment_item(question, zf, channel_id)
  File "contentcuration/utils/publish.py", line 636, in write_assessment_item
    question, question_images = process_image_strings(question, zf, channel_id)
  File "contentcuration/utils/publish.py", line 713, in process_image_strings
    with storage.open(ccmodels.generate_object_storage_name(checksum, filename), 'rb') as imgfile:
  File "contentcuration/utils/gcs_storage.py", line 245, in open
    return self._get_readable_backend(name).open(name, mode)
  File "contentcuration/utils/gcs_storage.py", line 239, in _get_readable_backend
    raise FileNotFoundError("{} not found".format(name))

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.