Closed
Bug 481241
Opened 16 years ago
Closed 16 years ago
Replace auto-incrementing collection IDs with UUIDs
Categories
(addons.mozilla.org Graveyard :: Collections, defect)
addons.mozilla.org Graveyard
Collections
Tracking
(Not tracked)
RESOLVED
FIXED
BW-M3
People
(Reporter: fligtar, Assigned: lorchard)
References
Details
Attachments
(1 file)
|
23.51 KB,
patch
|
rdoherty
:
review+
|
Details | Diff | Splinter Review |
For security reasons, we'd like to replace the current auto-incrementing IDs used by collections with UUIDs.
Les, do you mind taking a look at this?
| Assignee | ||
Comment 1•16 years ago
|
||
Here's a patch that I think does the trick, looking for a reviewer since rdoherty's out
| Assignee | ||
Updated•16 years ago
|
Attachment #366957 -
Flags: review?(clouserw)
| Assignee | ||
Comment 2•16 years ago
|
||
Comment on attachment 366957 [details] [diff] [review]
UUID added to collection fields, swapped out references to ID for UUID
tossing an r? to clouserw, since rdoherty's out. hopefully the addons bandwagon branch doesn't give too much trouble
Updated•16 years ago
|
Attachment #366957 -
Flags: review?(clouserw) → review?(rdoherty)
Comment 3•16 years ago
|
||
Comment on attachment 366957 [details] [diff] [review]
UUID added to collection fields, swapped out references to ID for UUID
Tested, looks good and works well.
Attachment #366957 -
Flags: review?(rdoherty) → review+
Comment 4•16 years ago
|
||
Comment on attachment 366957 [details] [diff] [review]
UUID added to collection fields, swapped out references to ID for UUID
FYI the lines:
+-- ALTER TABLE `collections` ADD `uuid` CHAR(36) NOT NULL DEFAULT '';
+-- UPDATE `collections` SET `uuid`=uuid() WHERE `uuid`='';
+-- ALTER TABLE ADD UNIQUE KEY `uuid` (`uuid`);
I assumed weren't part of the patch. 'ALTER TABLE ADD UNIQUE KEY `uuid` (`uuid`);' should be 'ALTER TABLE `collections` ADD UNIQUE KEY `uuid` (`uuid`);'
| Assignee | ||
Comment 5•16 years ago
|
||
checked in as r23586
Yeah, those lines are meant for the database updates page. Forgot I left them in there, but wanted to keep track of them because the order is a little tricky to ensure that there are unique values already present before adding a unique key.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•