Closed
Bug 1189573
Opened 10 years ago
Closed 10 years ago
Validation comparator throws errors on certain inputs
Categories
(addons.mozilla.org Graveyard :: Add-on Validation, defect)
addons.mozilla.org Graveyard
Add-on Validation
Tracking
(Not tracked)
RESOLVED
FIXED
2015-07
People
(Reporter: kmag, Assigned: kmag)
Details
The following inputs cause errors in the current code:
* Messages with list values in the "file" field.
Multi-package add-ons, and extensions with JAR files, emit messages with lists, rather than strings, in the file field. Since lists aren't hashable, those don't work in message keys, and the comparator throws.
* Messages with "context" keys with a value of None in the old set of validation results.
Messages without a "context" value can't be compared, so the message key function returns None when compiling a dict of old messages. The code that creates that dict checks whether "context" is present before adding, but "message_key" checks if it's present and truthy.
Any comparison where both the new and old results contain messages with a null context therefore generate a bad match.
Assignee | ||
Comment 1•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•10 years ago
|
Summary: Validation comparator does not throws errors on certain inputs → Validation comparator throws errors on certain inputs
Updated•9 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•