canvas-lms/gems/canvas_unzip
Jeremy Stanley ef39458302 canvas_unzip: deal with empty archives
zip or tar files with no contents are not necessarily identified
as such by `file`. if we get a generic application/octet-stream,
fall back on the extension.

this error is manifested in Canvas packages that contain an
empty web_resources folder. if the folder is not present, or
contains any files, the problem does not occur.

test plan:
 - on a Linux portal, attempt to import the package from
   the ticket

fixes ADMIN-1573

Change-Id: Ic796657f7993d06f7b5e09a845aaef714d966b8e
Reviewed-on: https://gerrit.instructure.com/176174
Tested-by: Jenkins
QA-Review: Carl Kibler <ckibler@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
Reviewed-by: James Williams <jamesw@instructure.com>
2019-01-03 20:24:20 +00:00
..
lib canvas_unzip: deal with empty archives 2019-01-03 20:24:20 +00:00
spec canvas_unzip: deal with empty archives 2019-01-03 20:24:20 +00:00
Gemfile add support for tar and tar.gz archives in content migrations 2014-08-01 12:36:27 +00:00
Rakefile ignore zip entries containing '..' elements or symlinks 2014-07-24 15:41:21 +00:00
canvas_unzip.gemspec upgrade many canvas gems to rspec 3 syntax 2016-12-27 18:44:23 +00:00
test.sh simplify gem test harnesses 2016-01-19 17:52:58 +00:00