Closed Bug 771516 Opened 13 years ago Closed 13 years ago

\ character in name prevents installation

Categories

(Firefox for Android Graveyard :: Web Apps (PWAs), defect)

ARM
Android
defect
Not set
normal

Tracking

(firefox16 affected)

VERIFIED WONTFIX
Tracking Status
firefox16 --- affected

People

(Reporter: aaronmt, Assigned: wesj)

References

Details

(Keywords: dev-doc-needed)

Is this expected behaviour? With a name such as: '!:;/<>\|?', I am unable to install the web-application (at least on testmanifest). There is nothing captured in GeckoOutput. ---- { "name":"!:;/<>\|?", "description":"This app has been automatically generated by testmanifest.com", "version":"1.0", "icons":{ "16":"http://testmanifest.com/icon-16.png", "48":"http://testmanifest.com/icon-48.png", "128":"http://testmanifest.com/icon-128.png" }, "installs_allowed_from":[ "*" ] } ------ Samsung Galaxy Nexus (Android 4.1) Nightly (07/06)
At a very minimum even if this isn't allowed, we should be correctly reporting an error back. Not sure what sanitization rules is being followed for app names on web apps for android. Mark and Wes - Can you clarify?
QA Contact: aaron.train
Priority: -- → P1
Assignee: nobody → wjohnston
tracking-fennec: ? → 16+
Right now that above manifest is failing before it ever gets to us. It looks like Webapps.js sends out an error: http://mxr.mozilla.org/mozilla-central/source/dom/apps/src/Webapps.js#147 but we're not watching for those yet? It looks like pages can grab them and since they are cancellable, I guess we can assume if we get one its because the page didn't handle it. But that's a separate bug.... will file.
OK, so the issue in your manifest is the \ character, which makes us the JSON parser look for an escape sequence and bail when it doesn't find one. We should catch these errors and show a toast or something. That will mean strings. I'll tackle this tomorrow.
If it helps things, I don't think not being able to insert an invalid \ character in JSON should block. The characters we were really worried about (?, :, !, etc) work fine in my testing.
(In reply to Wesley Johnston (:wesj) from comment #5) > If it helps things, I don't think not being able to insert an invalid \ > character in JSON should block. The characters we were really worried about > (?, :, !, etc) work fine in my testing. Completely agree. Marking for re-triage. I haven't seen any apps on desktop make use of the \ character in the name of the app, so I definitely agree this probably isn't a blocker.
No longer blocks: Blocking-FFA-WebRT1+
tracking-fennec: 16+ → ---
Priority: P1 → --
Summary: Mixture of reserved character input for name prevents installation → \ character in name prevents installation
\ is not valid JSON, so this is a won't fix. Marking dev-doc-needed - we should indicate this in the MDN doc about valid JSON rules.
Status: NEW → RESOLVED
Closed: 13 years ago
Keywords: dev-doc-needed
Resolution: --- → WONTFIX
Status: RESOLVED → VERIFIED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.