TitleReferringPagesPlugin links non-existing pages
Date17-Aug-2006 13:23:37 EEST
SubmitterCandid Dauth
Bug criticalityLightBug
Browser version*
Bug statusClosedBug
PageProvider used
Servlet Containertomcat-5.5
Operating SystemGNU/Linux
Java versionsun-jdk1.5.0_07

When a pagename contains a number that is followed by a lower case letter, which is followed by an uppercase letter or any other symbol, the ReferringPagesPlugin links the wrong page:

Testcase 4 a Wiki

This problem occurs because of the BeautifyTitles setting, which affects the link target, too. My patch looks this way:

-            output.append( "[" + m_engine.beautifyTitle(value) + "]" );
+            output.append( "[" + m_engine.beautifyTitle(value) + "|" + value + "]" );

This one should work, too:

-                    || ( (curKind == DIGIT) && ((nextKind == UPPER) || (nextKind == LOWER)) ))
+                    || ( (curKind == DIGIT) && (nextKind == UPPER) ))

Great catch, thanks! (I had been wondering about this for a while...)

-- JanneJalkanen

Janne, has the provided solution been incorporated and is the problem solved now ?

--HarryMetske, 10-Mar-2007

[Waiting for fix implementation |Bugs Waiting For Provided Fix To Be Implemented]
===> not anymore
--HarryMetske, 18-Mar-2007

Fixed in 2.5.32.

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-13) was last changed on 24-Mar-2007 20:02 by HarryMetske