You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jlge
changed the title
Zip containing binary files causes zip to fail to render entirely
Autolab does not display jar archives in speedgrader
Sep 11, 2024
jlge
changed the title
Autolab does not display jar archives in speedgrader
Jar archives are not displayed in speedgrader
Sep 11, 2024
While it may be the case that the viewer can't deal with binary files inside archives, this particular situation is caused by changes in the unix file command, used by the Archive.get_archive_type and Archive.archive? methods
libmagic now has many additional detectors for file formats that reuse the zip container format, including APKs, openoffice, epub, ios, and yes, files created with the jar tool. Files which match those detectors will not be shown as zip files or get the application/zip mimetype.
See https://github.com/file/file/blob/master/magic/Magdir/archive#L1798-L2142 for the rules in question.
In particular, jar files will be labeled with the application/java-archive mimetype. IF autolab wants to support jar archives, this mimetype will need to be an alias for application/zip
Zip directory contains .java files and a folder with a 'MANIFEST.MF' file, but fails to display in speedgrader view.
Current behavior
Binary file not displayed for entire zip
Expected behavior
Should be able to view the zip directory structure with all of it's files
The text was updated successfully, but these errors were encountered: