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)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: krupa.mozbugs, Assigned: basta)

References

()

Details

Attachments

(2 files)

Attached file install.rdf
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/
Assignee: nobody → mbasta
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?
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.
Any word on whether that cleared up the issue?
Target Milestone: 6.0.7 → 6.0.8
Target Milestone: 6.0.8 → 6.0.9
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
(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?
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.
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 → ---
(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.
It's a really small change. Can someone take a quick look before I merge? https://github.com/mozilla/amo-validator/pull/28
looks good
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → FIXED
This is not in zamboni yet
This will land when preview updates to https://github.com/jbalogh/zamboni-lib/commit/77fa353
Attached image post-fix screenshot
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: