Closed Bug 1238588 Opened 9 years ago Closed 9 years ago

DownloadContentBootstrap: Use generated IDs

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(firefox46 fixed)

RESOLVED FIXED
Firefox 46
Tracking Status
firefox46 --- fixed

People

(Reporter: sebastian, Assigned: sebastian)

References

Details

Attachments

(1 file)

Currently the static catalog in DownloadContentBootstrap uses randomized IDs. Let's use generated IDs so that we'll continue to use the same IDs when switching to the online catalog backed by Kinto. From Mathieu: >>> import uuid >>> import hashlib >>> filename = "CharisSILCompact-B.ttf" >>> identifier = hashlib.md5(filename).hexdigest() >>> record_id = uuid.UUID(identifier) >>> record_id > 'c40929cf-7f4c-fa72-3dc9-12cadf56905d' IDs: > CharisSILCompact-B.ttf c40929cf-7f4c-fa72-3dc9-12cadf56905d > CharisSILCompact-BI.ttf 6d265876-85ed-0917-fdc8-baf583ca2cba > CharisSILCompact-I.ttf 8460dc6d-d129-fd1a-24b6-343dbf6531dd > CharisSILCompact-R.ttf c906275c-3747-fe27-426f-6187526a6f06 > ClearSans-Bold.ttf ff5deecc-6ecc-d816-bb51-65face460119 > ClearSans-BoldItalic.ttf a173d1db-373b-ce42-1335-6b3285cfdebd > ClearSans-Italic.ttf e65c66df-0088-940d-ca5c-207c22118c0e > ClearSans-Light.ttf 25610abb-5dc8-fd75-40e7-990507f010c4 > ClearSans-Medium.ttf ffe40339-a096-2262-c3f8-54af75c81fe6 > ClearSans-MediumItalic.ttf 139a94be-ac69-0264-c9cc-8f2d071fd29d > ClearSans-Regular.ttf b887012a-01e1-7c94-fdcb-ca44d5b974a2 > ClearSans-Thin.ttf c8703652-d317-0356-0bf8-95441a5b2c9b
Comment on attachment 8706517 [details] MozReview Request: Bug 1238588 - DownloadContentBootstrap: Use generated IDs. r?rnewman,mathieu https://reviewboard.mozilla.org/r/30361/#review27075 Did I not already rubberstamp this already? :)
Attachment #8706517 - Flags: review?(rnewman) → review+
Attachment #8706517 - Flags: review?(mathieu) → review+
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 46
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: