Closed
Bug 652614
Opened 14 years ago
Closed 14 years ago
Mangled crash-stats URL in bugzilla comment
Categories
(bugzilla.mozilla.org :: General, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: alex_mayorga, Assigned: dkl)
References
()
Details
User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:6.0a1) Gecko/20110425 Firefox/6.0a1
Build Identifier:
https://bugzilla.mozilla.org/show_bug.cgi?id=642117#c0 contained 4 crash report links that are now broken.
Reproducible: Always
Steps to Reproduce:
1. Go to https://bugzilla.mozilla.org/show_bug.cgi?id=642117#c0
Actual Results:
Crash links are broken.
Expected Results:
Crash links work.
Reporter | ||
Updated•14 years ago
|
Blocks: bmo-regressions
Reporter | ||
Comment 1•14 years ago
|
||
There's another now broken link at https://bugzilla.mozilla.org/show_bug.cgi?id=642117#c6
Yep, definitely broken. They all have U+FFFD (Unicode replacement character) in them.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee | ||
Comment 3•14 years ago
|
||
This is due to the way custom regexes are used in 4.0 to do custom linking in bug comments. Due to a bug I have seen in the past but never quite figured out why it is happening, some links are getting re-formatted more than once and therefore breaks the link. I may need to revert to the old way of doing these til we can find a proper fix for 4.0.
dkl
Assignee: nobody → dkl
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•14 years ago
|
||
Fixed now. Please reopen this if the problem still persists. Otherwise mark as VERIFIED.
dkl
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 5•14 years ago
|
||
The patch has been backed out as it was broken.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•14 years ago
|
Summary: Links on description of bug 642117 broke after Bugzilla update → Mangled crash-stats URL in bugzilla comment
Comment 7•14 years ago
|
||
Comment 8•14 years ago
|
||
Having not looked at any of the code yet, are we scanning for breakpad crash IDs first before we scan for URLs? If so, that would cause this problem. Should be scanning for URLs first.
Comment 9•14 years ago
|
||
reasoning for comment 8: when we scan for replacements in the bug comments, we replace a replaced item with a token, and not it's replacement, and add the real replacement to a token table. When all of the replacement scanners have completed, we than go back and replace all of the tokens with their replacements.
The problem is that a breakpad ID that is also contained in a URL, even after that token has been put there, still looks like a URL. And the URL scanner will then replace the URL, including the token, so the breakpad replacement token is no longer there, if the URL scanner runs after the breakpad scanner.
Assignee | ||
Comment 10•14 years ago
|
||
Backing out the feature until a suitable solution can be found as this is causing dataloss.
dkl
Assignee | ||
Comment 11•14 years ago
|
||
Ok I found the solution using negative lookbehind in the regular expression that only matches the strings if not already in an URL. I am committing now and should be in the next code update.
dkl
Status: REOPENED → RESOLVED
Closed: 14 years ago → 14 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 12•14 years ago
|
||
I still see the broken links on bug 642117, would they eventually appear or do I hunt them down from about:crashes?
Assignee | ||
Comment 13•14 years ago
|
||
Not yet. There hasn't been a new code update since I closed the bug (maybe I should have kept it open?). But give the amount of churn with fixing regressions in 4.0, it won't be long, maybe even today.
dkl
Comment 14•14 years ago
|
||
I just did a push about an hour ago, if it hadn't already been live before it should be now.
Status: RESOLVED → VERIFIED
Comment 15•14 years ago
|
||
Works, good job, thanks!
Updated•13 years ago
|
Component: Bugzilla: Other b.m.o Issues → General
Product: mozilla.org → bugzilla.mozilla.org
You need to log in
before you can comment on or make changes to this bug.
Description
•