Closed Bug 714160 Opened 14 years ago Closed 14 years ago

apps: installs_allowed_from should not be required

Categories

(addons.mozilla.org Graveyard :: Add-on Validation, defect, P2)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: ianbicking, Assigned: basta)

Details

Attachments

(1 file)

The manifest property "installs_allowed_from" is not required; in its absence the value is assumed to be ["*"]. Also though both name and URL are defined for the "developer" property, neither are required - submitting with only a name gives an error. Once you succeed you get a message "Your app passed validation with no errors and 1 message." - the one message being a positive "App confirmed." This is kind of distracting. Also in the detailed report this is called a warning.
(In reply to Ian Bicking (:ianb) from comment #0) > This is kind of distracting. Also in the detailed report this is called a > warning. That is bug 677583.
Assignee: nobody → cvan
Target Milestone: --- → 6.4.0
basta, can you update the validator so it doesn't require installs_allowed_from in manifests?
Assignee: cvan → mattbasta
Priority: -- → P2
Assignee: mattbasta → nobody
Component: Public Pages → Add-on Validation
QA Contact: web-ui → add-on-validation
I tried this manifest and still get the same error : { "name": "MozApps Hello World", "description": "MozApps Hello World does absolutly nothing.", "launch_path": "http://helloworld.webruntime.com/index.html", "developer": { "name": "Misfit Geek", "url": "http://www.misfitgeek.com/" }, "icons": { "128": "icon128.png" }, "installs_allowed_from": [ "*" ] }
(In reply to JStagner@Mozilla.com from comment #5) > I tried this manifest and still get the same error : what error are you getting? and which site are you submitting to? the code has not been deployed yet.
I'm submitting here : https://apps-preview.mozilla.org/en-US/developers/app/submit/2 And getting this error : General Tests 1 error, 0 warnings App: JSON Parse Error Error: The webapp extension could not be parsed due to a syntax error in the JSON.
Summary: apps: installs_allowed_from should not be required, developer.url should not be required → apps: installs_allowed_from should not be required
Assignee: nobody → mattbasta
Target Milestone: 6.4.0 → 6.3.9
btw I made bug 721098 for the developer.url bug
(In reply to JStagner@Mozilla.com from comment #8) > General Tests > 1 error, 0 warnings > App: JSON Parse Error > > Error: The webapp extension could not be parsed due to a syntax error in the > JSON. This means that the JSON for your manifest isn't written properly. Attach the file that you're submitting and I'll have a look.
As I mentioned here, https://bugzilla.mozilla.org/show_bug.cgi?id=721051#c4, the launch_path is incorrect.
JSONLint validates it as valid JSON
(In reply to JStagner@Mozilla.com from comment #8) > Error: The webapp extension could not be parsed due to a syntax error in the > JSON. I can't reproduce this error when copying/pasting your json into a manifest http://people.mozilla.com/~kmcmillan/bug714160.webapp Can you paste the URL to the manifest you are using? It might be another encoding issue.
I removed the launch path entry and still get the error : http://helloworld.webruntime.com/manifest.webapp
Aha, this is the BOM error again. I created bug 721103 for it. Thanks!
Yes ! I stripped the BOM with vi and the file now parses.
installs_allowed_from is not a required field anymore.
Status: RESOLVED → VERIFIED
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: