Closed Bug 476057 Opened 16 years ago Closed 16 years ago

Some entries in remora addons table have trailing CRLF in guid field

Categories

(addons.mozilla.org Graveyard :: Administration, defect)

All
Other
defect
Not set
minor

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: dre, Assigned: clouserw)

References

Details

SELECT * FROM addons WHERE guid LIKE '%\n' -- you might need '%\\n' depending on client A way to fix them up: SELECT guid, ASCII(RIGHT(guid, 2)), ASCII(RIGHT(guid, 1)) , ASCII(RIGHT(TRIM(TRAILING '\r\n' FROM guid), 2)), ASCII(RIGHT(TRIM(TRAILING '\r\n' FROM guid), 1)) FROM `addons` WHERE guid LIKE '%\n'
Depends on: 444136
happy to run whatever clouserw approves.
Assignee: server-ops → aravind
Er, I didn't know this was an IT bug. Sorry Aravind, but moving this to AMO.
Assignee: aravind → nobody
Group: infra
Component: Server Operations → Administration
Product: mozilla.org → addons.mozilla.org
QA Contact: mrz → administration
Target Milestone: --- → 5.0.2
Version: other → unspecified
Daniel: is the \n coming through in the update ping requests? I suspect it is not since both add-ons that this affects have "0 active daily users" but one has a decent number of total downloads. (Which means their updates are currently broken and once I fix this it will fix their updates too). Just double checking before I change the GUID...
I haven't grepped through logs to try to find them. I honestly don't know what would happen to the browser when it tried to pass this guid through as a variable. I can do a search for them next week after we are up and running. Sorry I logged it as an IT bug because I thought it would need to go into mozilla.org Server operation rather than AMO. The description of AMO in bugzilla seemed to indicate it pertained only to the website.
I installed the add-on and tried it. Looks like the \n gets trimmed before requesting the update. This happens because the install.rdf file has a \n in it (bug 444136 should fix that). Since update requests we're broken I went ahead and changed this in the database for both add-ons, 4413 and 4428.
Assignee: nobody → clouserw
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Just to make sure, did you remove both the \r and \n?
yep
mysql> select id,guid from addons where id in (4413,4428); +------+----------------------------------------+ | id | guid | +------+----------------------------------------+ | 4413 | {508d8024-bf44-46ae-b5d9-fb61f1694ca3} | | 4428 | {CCC7A248-DECB-4c9c-A209-01B787A6A43B} | +------+----------------------------------------+ 2 rows in set (0.03 sec)
Thanks, clouserw; verified per comment 8.
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.