Closed
Bug 649181
Opened 14 years ago
Closed 14 years ago
Do not allow minVersion > maxVersion in install.rdf
Categories
(addons.mozilla.org Graveyard :: Developer Pages, defect)
addons.mozilla.org Graveyard
Developer Pages
Tracking
(Not tracked)
VERIFIED
FIXED
6.0.9
People
(Reporter: krupa.mozbugs, Assigned: basta)
References
()
Details
Attachments
(2 files)
steps to reproduce:
1. Upload an add-on which has minVersion > maxVersion in its install.rdf
example:
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>4.0.*</em:minVersion>
<em:maxVersion>3.0.*</em:maxVersion>
</Description>
expected behavior:
Validation fails
observed behavior:
Validation is successful. See https://addons.allizom.org/en-US/firefox/addon/sunkjkjhh/
Updated•14 years ago
|
Assignee: nobody → mbasta
Assignee | ||
Comment 1•14 years ago
|
||
This is already in the validator and there are tests for it. One thing that could be making it fishy is if the list of versions the validator gets from zamboni is unordered. The list needs to be sorted from earliest to most recent. Can someone point out where the list is being generated/passed?
Comment 2•14 years ago
|
||
The apps.json is generated by this command https://github.com/jbalogh/zamboni/blob/80cc09c5db23cfc2cfc5b52ffcd125b640454fb1/apps/applications/management/commands/dump_apps.py#L25
And it is ordered by version. However, zamboni's validator submodule was last updated on 4/12 so I'm updating it now.
Assignee | ||
Comment 3•14 years ago
|
||
Any word on whether that cleared up the issue?
Updated•14 years ago
|
Target Milestone: 6.0.7 → 6.0.8
Updated•14 years ago
|
Target Milestone: 6.0.8 → 6.0.9
Assignee | ||
Comment 4•14 years ago
|
||
This has the same issue as the bug that Kumar recently closed:
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>4.0.*</em:minVersion>
<em:maxVersion>3.0.*</em:maxVersion>
</Description>
</em:targetApplication>
4.0.* is not an earlier version than 3.0.*. The file should instead use:
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>3.0.*</em:minVersion>
<em:maxVersion>4.0.*</em:maxVersion>
</Description>
</em:targetApplication>
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
Comment 5•14 years ago
|
||
(In reply to comment #0)
> observed behavior:
> Validation is successful. See
> https://addons.allizom.org/en-US/firefox/addon/sunkjkjhh/
Krupa, could you add a link to the actual validation that should have displayed the min > max error but did not?
Reporter | ||
Comment 6•14 years ago
|
||
I just uploaded an add-on with min version = 3.6.* and max version = 3.1b3
Validation URL: https://addons.allizom.org/en-US/developers/upload/5c26959ed9fb469fa6cfdb8a6c122bfb
There is a warning about invalid versions range, but validation doesn't fail.
Comment 7•14 years ago
|
||
ok, so this bug is to make min > max an error instead of just a warning? I'll reopen since this is not a problem with the manifest itself.
Since Jorge is cc'd any opinions? Is this something that should really block the user from submitting an addon.
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Comment 8•14 years ago
|
||
(In reply to comment #7)
> ok, so this bug is to make min > max an error instead of just a warning? I'll
> reopen since this is not a problem with the manifest itself.
>
> Since Jorge is cc'd any opinions? Is this something that should really block
> the user from submitting an addon.
Yes, it should.
Assignee | ||
Comment 9•14 years ago
|
||
It's a really small change. Can someone take a quick look before I merge?
https://github.com/mozilla/amo-validator/pull/28
Comment 10•14 years ago
|
||
looks good
Assignee | ||
Comment 11•14 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 14 years ago → 14 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 12•14 years ago
|
||
This is not in zamboni yet
Comment 13•14 years ago
|
||
This will land when preview updates to https://github.com/jbalogh/zamboni-lib/commit/77fa353
Reporter | ||
Comment 14•14 years ago
|
||
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 15•14 years ago
|
||
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
•