Closed
Bug 679991
Opened 14 years ago
Closed 13 years ago
getParsedLog.php?full=1 pretends that errors have anchors which they do not
Categories
(Tree Management Graveyard :: TBPL, defect)
Tree Management Graveyard
TBPL
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: philor, Assigned: mstange)
References
Details
(Keywords: regression)
Attachments
(1 file)
1.94 KB,
patch
|
rhelmer
:
review+
|
Details | Diff | Splinter Review |
There are links at the top of the new full logs, which look like they would be the same old links that take you down to the error part of the log, but for instance http://tbpl.allizom.org/php/getParsedLog.php?id=6011080&full=1#error1 doesn't scroll to #error1, because #error1 doesn't exist.
(For a good time, use cmd+f to find that part of the log, select from a couple of lines before to a couple of lines after, and then view selection source, to verify that it doesn't exist, on a machine with less than 8GB of RAM - I did it with a WinXP box with just 1GB, and thought I was going to have to unplug it to get it unhung.)
Assignee | ||
Comment 1•14 years ago
|
||
Okay, where's the bug in FullLogGenerator::linkLinesWithErrors? Aren't arrays passed by reference in PHP?
Reporter | ||
Comment 2•14 years ago
|
||
They are indeed, when you ask for them to be. "private function linkLinesWithErrors(&$lines, $linesWithErrors)" with an &$lines would give you $lines by reference and $linesWithErrors by value.
(Well, really it gives you both by reference, but with $linesWithErrors marked to say that if you make any changes to it, at that point it should be copied and the changes only made to the copy, but that's just an implementation detail.)
Comment 3•14 years ago
|
||
Sorry for not catching that in the review. That is another part of php that I don’t like at all.
Reporter | ||
Updated•13 years ago
|
Keywords: regression
Assignee | ||
Comment 5•13 years ago
|
||
Not using a reference for the array wasn't the only mistake. The other mistake was using a non-existing $i variable instead of $lineWithError.
I've also made GzipUtils::mendBrokenLines use a reference for the array in order to avoid unnecessary copying.
Assignee | ||
Comment 6•13 years ago
|
||
Comment on attachment 559146 [details] [diff] [review]
v1
Arpad is on vacation, so maybe Robert can review this sooner.
Attachment #559146 -
Flags: review?(rhelmer)
Comment 7•13 years ago
|
||
Comment on attachment 559146 [details] [diff] [review]
v1
lgtm, I am not set up to test right now but we can verify on tbpl-dev (will auto-update after this is pushed to hg)
Attachment #559146 -
Flags: review?(rhelmer) → review+
Assignee | ||
Comment 8•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•13 years ago
|
Attachment #559146 -
Flags: review?(arpad.borsos)
Reporter | ||
Comment 9•13 years ago
|
||
Verified working on tbpl-dev (as long as you don't confuse yourself with a cached log from before it was updated).
Updated•10 years ago
|
Product: Webtools → Tree Management
Updated•10 years ago
|
Product: Tree Management → Tree Management Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•