samvera / hydra-works

A ruby gem implementation of the PCDM Works domain model based on the Samvera software stack
Other
24 stars 14 forks source link

Changing how the file is retrieved for virus checking #314

Closed carolyncole closed 7 years ago

carolyncole commented 7 years ago

fixes #313

If the content has a path just use that If the file is not saved to fedora use the content If the file is save use the datastream

This bug was introduced by me in an effort to not read large files into memory. Unfortunately when the item was not saved the datastream could not be retrieved from fedora.

carolyncole commented 7 years ago

@jeremyf I updated the test names in the three locations that should be connected.

carolyncole commented 7 years ago

@jeremyf Looks like the original test was 100% backwards on the it will return true vs it will return false. Looked at them all and switched them to match the expects.