TitleInline images case sensitive
Date04-Jul-2005 16:39:12 EEST
Version2.2.27
Submitterajbanck
Bug criticalityLightBug
Browser versionIE
Bug statusClosedBug
PageProvider used
Servlet Containertomcat
Operating SystemLinux
URL
Java version1.4

When pattern is *.jpg/*.png, attachments saved with uppercase extension like .JPG are not recognized. One would expect this would be case-insensitive

jspwiki.translatorReader.inlinePattern.1 = *.jpg

xmlCoffeeCup.PNG


This is a property of the regexps...


Yes it is, but can't this be easily solved by changing line 660 in JSPWikiMarkupParser to include on .toLowerCase() :

                if( m_inlineMatcher.matches( link.toLowerCase(), (Pattern) i.next() ) )

I'm not sure if the same change is necessary for TranslatorReader.

And offcourse some explaining documentation in jspwiki.properties.

--HarryMetske, 04-Mar-2007


Fixed in 2.5.32. Thanks!

--JanneJalkanen, 20-Mar-2007

Add new attachment

In order to upload a new attachment to this page, please use the following box to find the file, then click on “Upload”.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
PNG
xmlCoffeeCup.PNG 1.2 kB 1 04-Jul-2005 16:40 ajbanck
« This page (revision-10) was last changed on 20-Mar-2007 23:27 by HarryMetske [RSS]