Last modified: 2014-11-17 10:35:44 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T31039, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29039 - Revision links in BugZilla comments should not be linked half-way words.
Revision links in BugZilla comments should not be linked half-way words.
Status: RESOLVED WORKSFORME
Product: Wikimedia
Classification: Unclassified
Bugzilla (Other open bugs)
unspecified
All All
: Low normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
: 28765 30161 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-18 17:03 UTC by Krinkle
Modified: 2014-11-17 10:35 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Untested patch to improve SVN revision matching in Bugzilla comments (2.54 KB, patch)
2011-07-31 19:28 UTC, MZMcBride
Details
Tested patch (1.09 KB, patch)
2011-08-02 01:03 UTC, Mark A. Hershberger
Details

Description Krinkle 2011-05-18 17:03:42 UTC
The following line has a linked revision id (revision 2):


<div id="chapter2">Foobar</div>
Comment 1 Priyanka Dhanda 2011-06-22 21:24:19 UTC
Bugmeister is the new Bugzilla maintainer and default assignee.
Comment 2 MZMcBride 2011-07-29 06:48:29 UTC
This appears to corrupt SVN ViewVC links that use &r1= and &r2= in them. The original problem shouldn't be very difficult to fix with word boundaries (\b). Not sure how you fix <r1=foo&r2=bar">http://example.com/?r1=foo&r2=bar>, though.
Comment 3 MZMcBride 2011-07-31 19:28:21 UTC
Created attachment 8858 [details]
Untested patch to improve SVN revision matching in Bugzilla comments

This is an untested patch that improves the custom "Wikimedia" extension used by Bugzilla to stop matching "rXXX" in certain cases and to match "rXXX#cYYY" in other cases.

The following test cases were used:
r1
This was fixed in r2.
I laid out the reasons this sucks in r3#c0.
You can read why you suck at r4#code-comments.
r5=0&r6=0">http://example.com/?r5=0&r6=0
<div id="chapter2">hello!</div>
Comment 4 MZMcBride 2011-07-31 19:29:15 UTC
The proposed patch would also resolve bug 28765.
Comment 5 Dan Collins 2011-07-31 19:40:57 UTC
MZMcBride's patch looks sane and good, no problems that I can see and it would fix both this bug and bug 28765.
Comment 6 Chad H. 2011-08-01 14:44:50 UTC
*** Bug 30161 has been marked as a duplicate of this bug. ***
Comment 7 Mark A. Hershberger 2011-08-02 01:03:59 UTC
Created attachment 8865 [details]
Tested patch

This is a cleaned up and tested version of MZ's patch.  I want to take advantage of Bz's testing infrastructure, so I'm not committing this yet.
Comment 8 MZMcBride 2011-08-02 01:16:07 UTC
The whitespace changes were annoying, yes, but the whitespace seemed particularly stupid throughout. I felt justified.
Comment 9 Mark A. Hershberger 2012-06-22 20:55:51 UTC
still not fixed, but unless I really get into Bugzilla hacking, I'm not doing it.
Comment 10 Andre Klapper 2013-07-24 12:41:58 UTC
Putting the patch into Gerrit is highly welcome: https://git.wikimedia.org/blob/wikimedia%2Fbugzilla%2Fmodifications.git/HEAD/extensions%2FWikimedia%2FExtension.pm
Comment 11 Andre Klapper 2013-09-06 16:29:17 UTC
*** Bug 28765 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links