Uploading an exam-references zip file from Mac causes Err500 #422
Labels
bug
Something isn't working
exam-authoring
The whole process of creating and modifying exams
good first issue
Good for newcomers
If the zip contains a
__MACOSX
folder, the files may "contain invalid Unicode", when treated as text, which causes an uncaught exception at https://github.com/CodeGrade/hourglass/blob/master/app/graphql/mutations/change_exam_version_details.rb#L55:We need to protect that call more carefully, and probably also reject the
__MACOSX
folder more aggressively.The text was updated successfully, but these errors were encountered: