uclibs / scholar_uc_legacy

Source code for Scholar@UC up to version 3.x. Replaced by ucrate
Other
5 stars 1 forks source link

Bug/#1949 virus checker #1955

Closed crowesn closed 5 years ago

crowesn commented 6 years ago

Fixes #1949

Overrides Hyrax gem to add virus scan validation to uploaded_file model as well as exception handling to controller. JS uploader now displays contextual error message when a virus is detected at time of upload. Disables scan in the file attachment job so that we don't scan twice.

Changes proposed in this pull request:

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.4%) to 95.572% when pulling 3315e49415f6ec05b4ed18c04b602a0a6ab72534 on bug/#1949-virus-checker into dbc38e08a6c4c0bbf47c194156e1e19030c7a3d2 on develop.

crowesn commented 5 years ago

@hortongn

This should be good to go -

Use eicar string to test manually: X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*