avalonmediasystem / avalon

Avalon Media System – Samvera Application
http://www.avalonmediasystem.org/
Apache License 2.0
93 stars 51 forks source link

[BUG] Error when trying to edit a media object with no language on supplemental file #5883

Open elynema opened 2 weeks ago

elynema commented 2 weeks ago

Describe the bug For at least one instance of a media item on avalon-dev, I get a 500 error (NoMethodError) when I go to Edit -> Manage Files a specific media object. The error seems to be related to language of supplemental file.

image.png

To Reproduce Steps to reproduce the behavior, including the results:

  1. Log in as archivist admin user
  2. Go to https://avalon-dev.dlib.indiana.edu/media_objects/wm117n96b/edit
  3. Click on Manage Files
  4. You will see an error message.

Expected behavior User should see the Manage File page, not the error.

Environment (please complete the following information):

Release: Unknown

elynema commented 1 week ago

Another example to test for this:

https://avalon-dev.dlib.indiana.edu/media_objects/3n203z084/edit?step=file-upload