chapmanu / signage

Digital Signage Riding on Rails
MIT License
13 stars 6 forks source link

Error when uploading a background video to a slide #175

Open mirabelrice opened 7 years ago

mirabelrice commented 7 years ago

Reported by Meagan O'Shea

When creating a slide and using the video background option on the digital signage, the system is not allowing the file to be uploaded. it is causing the generic error message when the final submit is pushed. Works for foreground videos but not background.

Story: https://trello.com/c/v4ekrbK8/359-defect-on-digital-signage-when-loading-a-video-to-the-background-the-file-upload-triggers-an-error-message

Bugsnag Report: https://app.bugsnag.com/chapman-university/signage/errors/58d1880d4f1bb51700fc0fd6?filters%5Bevent.since%5D%5B%5D=30d&filters%5Berror.status%5D%5B%5D=open

mirabelrice commented 7 years ago

For some reason the error is no longer reproducible on local, staging, or production. Users are able to upload background videos with no error. Tested with original problem video as well as another video. However, bugsnag is still reporting an error whenever a video is uploaded. The error seems to occur in the following method:

screen shot 2017-05-02 at 3 59 24 pm

Although there is a validate_video_file method in slide.rb, it is for some reason using the validate_image_file method instead which may be causing the error