TitleInserting a page fails if target page name contains an underscore
Date02-Sep-2006 20:47:00 EEST
Version2.4.40 beta
Submitter68.82.69.104
Bug criticalityLightBug
Browser versionFirefox
Bug statusClosedBug
PageProvider used
Servlet Containerwhatever you are running here
Operating SystemWindows
URLHowToInsertAPage
Java versionditto

See the page HowToInsertAPage... the bug is demonstrated at the bottom of the page.

Briefly, I used:

[{InsertPage page=InsertPageTest_WithUnderscore}]

and instead of getting an insert of the the page InsertPageTest_WithUnderscore I got an insert of the page InsertPageTest.

Is this a bug, or is there some way to escape the embedded underscore?

Are underscores in Wiki names not supported?


It seems to be an issue in the parser, which considers "_" to be a stop word, just like a comma or a dot. Workaround: enclose the page name in single quotes. I.e.

[{InsertPage page='InsertPageTest_WithUnderscore'}]

instead of

[{InsertPage page=InsertPageTest_WithUnderscore}]

Downgraded this bug... It's more like "not using quotes when words contain stop words is not supported."

-- JanneJalkanen


To me this sounds like a very reasonable solution, it is now also documented on HowToInsertAPage, so closing this bug.

--HarryMetske

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-4) was last changed on 04-Mar-2007 14:18 by HarryMetske