Misidentifies many asset files as binaries, thus preventing architecture:all packages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Click Reviewers tools (obsolete) |
Fix Released
|
Wishlist
|
Jamie Strandboge |
Bug Description
click-review uses Python3's libmagic bindings to identify the types of files in the click package. However, it requires a mimetype to be returned and only checks that. Many file types are correctly identfied by libmagic but don't have a dedicated filetype, for example .woff files:
$ file uwp/libraries/
$ file --mime-type uwp/libraries/
uwp/libraries/
Unfortunately, click-review then assumes that any file with mimetype application/
The click-review tool could handle this situation better; this could be construed as a libmagic(3) bug because there's no mimetype defined for many recognised file types in the magic file, but there are always likely to be files which are not executables and which don't have a mimetype. Shipping a file of arbitrary binary data will currently cause an architecture:all package to fail click review, which is wrong. I suggest that click-review explicitly look for executables (mimetype application/
Changed in click-reviewers-tools: | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
Changed in click-reviewers-tools: | |
status: | Triaged → In Progress |
assignee: | nobody → Jamie Strandboge (jdstrand) |
Changed in click-reviewers-tools: | |
assignee: | nobody → Jamie Strandboge (jdstrand) |
https:/ /bugs.launchpad .net/click- reviewers- tools/+ bug/1564488 is a relevant particular occurrence of this more general bug.