Closed Bug 827294 Opened 12 years ago Closed 12 years ago

[Settings] permission string IDs must not contain colon ':'

Categories

(Firefox OS Graveyard :: Gaia::Settings, defect, P1)

ARM
Gonk (Firefox OS)
defect

Tracking

(blocking-basecamp:+)

VERIFIED FIXED
blocking-basecamp +

People

(Reporter: Pike, Assigned: vingtetun)

References

Details

(Keywords: late-l10n)

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #821961 +++ In bug 821961, we added strings with ':' in the keys, which I stupidly r+'ed post-mortem. Actually, ':' is a key-value separator in .properties files, and thus these keys break our infrastructure rather badly, both the l10n dashboard as well as external tools exposing the strings, see https://github.com/transifex/transifex/issues/180 for example. We'll need to fix these strings to use a different glue character, say '.'.
FWIW there were ":" before bug 821961 too. We'll need to gsub everywhere those keys are used since the gecko uses ":" in those permissions names. IIRC: settings/js/apps.js and system/js/permission_manager.js
Let's make sure this goes into triage.
blocking-basecamp: + → ?
Actually the strings were in Gecko from before bug 821961 but they weren't being used. This can be fixed just in Gaia (by replacing the ':' on the name with a '.' on the definition and then replacing it back to ':' before calling PermissionSettings), or it can be fixed in Gecko. Fixing it in Gecko will probably be better on the long run (because otherwise the day a permission with a '.' on the name is introduced we're going to have funny problems), but requires a little more work: Gecko: * Changing the permissions name in PermissionsTable.jsm Gaia: * After the change makes it to the gecko repository, rerun the permissions name generating script I made to get the correct names. * Fix the manifests for all the apps so they have the correct names.
Attached patch Patch (deleted) — Splinter Review
Assignee: nobody → 21
Attachment #698652 - Flags: review?(etienne)
Comment on attachment 698652 [details] [diff] [review] Patch Review of attachment 698652 [details] [diff] [review]: ----------------------------------------------------------------- This looks good to me, thanks for jumping at this quickly.
Attachment #698652 - Flags: feedback+
Oups i removed the flag unintentionally.
blocking-basecamp: ? → +
Attachment #698652 - Flags: review?(etienne) → review+
Verified fixed in 2013-01-31-07-02-01 pvt nightly b2g18 build
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: