|Title|Inserting a page fails if target page name contains an underscore
|Date|02-Sep-2006 20:47:00 EEST
|Version|2.4.40 beta
|[Bug criticality]|LightBug
|Browser version|Firefox
|[Bug status]|ClosedBug
|[PageProvider] used|
|Servlet Container|whatever you are running here
|Operating System|Windows
|Java version|ditto

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.