Closed eviljeff closed 2 years ago
This issue has been automatically marked as stale because it has not had recent activity. If you think this bug should stay open, please comment on the issue with further details. Thank you for your contributions.
This will be a lot simpler once mozilla/addons#8499 drops is_webextension
from the File model (maybe even wontfix/dupe)
rewording to just focus on is_signed
because mozilla/addons#8499 will drop is_webextension
entirely.
WONTFIX'ing this. is_signed
is only checked in a few places (blocklist code; exposed in signing serializer; shown in admin) and we can just make sure the field is set for those tests.
The
file_factory
test function, that is in turn used byversion_factory
andaddon_factory
, createsFile
objects that are by defaultSTATUS_APPROVED
but notis_signed
like a "normal" approved File instance would be; and notis_webextension
even though we've not accepted new legacy addon uploads in more than a year. We should look into changing these defaults.caveats/footguns:
STATUS_APPROVED
may not be beis_signed =True
in some cases, e.g. before autograph has returned the signed file.Could be split into two issues.