Closed
Bug 545882
Opened 16 years ago
Closed 16 years ago
Validator should not abort if a version validity check fails
Categories
(addons.mozilla.org Graveyard :: Developer Pages, defect, P4)
addons.mozilla.org Graveyard
Developer Pages
Tracking
(Not tracked)
RESOLVED
WONTFIX
4.x (triaged)
People
(Reporter: davemgarrett, Unassigned)
References
()
Details
Try to use the general validator with an addon with listed application support in install.rdf having a version not currently in the valid versions list and it'll give you an error about it and abort the rest of the validaton. For example, upload an addon with a maxversion of 3.7a2pre on preview and you'll get:
------------------------------------------------------------
Oops! There seems to be a problem with this file...
The add-on failed a validation test: The following errors were found in install.rdf:
3.7a2pre is not a valid version for Firefox
Please see this page for reference.
Please correct this problem and upload your file again.
------------------------------------------------------------
It should be saying this in a big error in the validaton output itself, not refusing to continue altogether. The current behavior is what one would expect trying to upload an addon for hosting, not when using the general validator and uploading an arbitrary file for one-shot testing.
Updated•16 years ago
|
Severity: normal → minor
Priority: -- → P4
Target Milestone: --- → 4.x (triaged)
Comment 1•16 years ago
|
||
I kinda agree and I kind of don't. It's not necessarily invalid, but if we're giving different results from 2 places on the site, that could cause confusion. Jorge: can you make a decision here?
Comment 2•16 years ago
|
||
For the sake of simplicity and consistency, I think it's best that we use the same rules on both places, meaning that errors like this will stop validation. Other errors include malformed add-ons or incorrect add-on types, and continuing with the validation in those cases can lead to unexpected behavior or even crashes.
Since changing the version strings locally is not a hard thing to do, I think we can safely WONTFIX this.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WONTFIX
| Reporter | ||
Comment 3•16 years ago
|
||
(In reply to comment #2)
> Since changing the version strings locally is not a hard thing to do, I think
> we can safely WONTFIX this.
Fair enough, but that does mean that if I have to test an addon that has an invalid support range more work is required to upload. (ex: bug 592258)
| Assignee | ||
Updated•10 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
•