|Title|ReferringPagesPlugin links non-existing pages
|Date|17-Aug-2006 13:23:37 EEST
|Version|2.4.33
|Submitter|Candid Dauth
|[Bug criticality]|LightBug
|Browser version|*
|[Bug status]|ClosedBug
|[PageProvider] used|
|Servlet Container|tomcat-5.5
|Operating System|GNU/Linux
|URL|[Testcase4aWiki]
|Java version|sun-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:

[{ReferringPagesPlugin}]

This problem occurs because of the BeautifyTitles setting, which affects the link target, too. My patch looks this way:
{{{
src/com/ecyrd/jspwiki/plugin/AbstractReferralPlugin.java:246
-            output.append( "[" + m_engine.beautifyTitle(value) + "]" );
+            output.append( "[" + m_engine.beautifyTitle(value) + "|" + value + "]" );
}}}

This one should work, too:
{{{
src/com/ecyrd/jspwiki/TextUtil.java:533
-                    || ( (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.