Closed
Bug 812624
Opened 12 years ago
Closed 12 years ago
Validator incorrectly always uses DEFAULT_WEBAPP_MRKT_URLS from constants.py
Categories
(Marketplace Graveyard :: Code Quality, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
2013-01-24
People
(Reporter: cvan, Assigned: basta)
Details
1) https://github.com/mozilla/zamboni/blob/master/mkt/developers/tasks.py#L119
`validate_app` is called with `market_urls=settings.VALIDATOR_IAF_URLS`.
2) https://github.com/mozilla/app-validator/blob/master/appvalidator/validate.py#L80
`market_urls` are used to set `constants.DEFAULT_WEBAPP_MRKT_URLS`
3) https://github.com/mozilla/app-validator/blob/master/appvalidator/specs/webapps.py#L6
`DEFAULT_WEBAPP_MRKT_URLS` is extracted from `..constants`, thereby replacing the `market_urls` set in the file above
We should avoid this code path, because currently https://github.com/mozilla/app-validator/blob/master/appvalidator/constants.py#L13 afaict is what's always being processed as the `DEFAULT_WEBAPP_MRKT_URLS`.
Assignee | ||
Comment 1•12 years ago
|
||
This should be fixed with the changes in the cleanup commit that also does CSP stuff:
https://github.com/mozilla/app-validator/commit/35d0d1e5a797b3927d1ccf6317d5a3f6a529f57c
RESOLVED FIXED(MAYBE(PROBABLY))
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 2•12 years ago
|
||
If I add VALIDATOR_IAF_URLS = ['https://marketplace.firefox.org'] to the local settings, the validator still allow me to upload manifests matching that.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Reporter | ||
Comment 3•12 years ago
|
||
(In reply to Chris Van Wiemeersch [:cvan] from comment #2)
> If I add VALIDATOR_IAF_URLS = ['https://marketplace.firefox.org'] to the
> local settings, the validator still allow me to upload manifests matching
> that.
*still does not allow
Assignee | ||
Updated•12 years ago
|
Target Milestone: --- → 2013-01-23
Assignee | ||
Comment 4•12 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•