You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.
If you have an existing work with file sets, and one of the file sets has an extracted text file, then updating the file set via csv can error if the extracted text file is missing or unreadable by the file system.
Setup
To reproduce the error:
Ingest sample works, such as collection pstsc_09844
Export the resulting collection as csv
Update one of the file set's metadata in the csv
Remove the extracted text file from the updated file set, ex. rm pstsc_09844_e15ca556987b120ed80a50444194464a_00001_001_text.txt
Upload the csv to update the collection's metadata
The csv should validate and you can perform the import
Error
It looks like this is coming from the save transaction, but the resulting error is buried in the output. You can search the page for "error" and you should find:
@errors=#<Reform::Form::ActiveModel::Errors:0x00007f86e9bf04d8
@base=#<Work::FileSetChangeSet:0x00007f86e9bf1bd0 ...>,
@messages={
:save=>["No such file or directory @ rb_sysopen - /Users/agw13/Projects/Github/psu-libraries/cho/public/files/pstsc_09844_e15ca556987b120ed80a50444194464a_00001_001_text.txt"]
},
@details={
:save=>[{:error=>"No such file or directory @ rb_sysopen - /Users/agw13/Projects/Github/psu-libraries/cho/public/files/pstsc_09844_e15ca556987b120ed80a50444194464a_00001_001_text.txt"}]
}
>
Todo
We ought to make the save process more tolerant and allow existing file sets to save, even if some of their files are missing. Either logging an error somewhere or reporting it to the user while updating the relevant metadata.
Fix the error display messages on the "Faile Import" page.
The text was updated successfully, but these errors were encountered:
Description
If you have an existing work with file sets, and one of the file sets has an extracted text file, then updating the file set via csv can error if the extracted text file is missing or unreadable by the file system.
Setup
To reproduce the error:
rm pstsc_09844_e15ca556987b120ed80a50444194464a_00001_001_text.txt
Error
It looks like this is coming from the
save
transaction, but the resulting error is buried in the output. You can search the page for "error" and you should find:Todo
The text was updated successfully, but these errors were encountered: