Details
-
Bug
-
Resolution: Fixed
-
Major
-
2.1 Final
-
None
-
WindowsXP, jdk1.5, tomcat1.5.9
Description
I have this site structure
en
\ - homepage
\ - somepage
:
I don't show en node in menu, neither in sitemap
,but /en is still available for browsing (normally)
I tried to disable this by adding an entry in VirtualUriMapping like this:
fromUri: /en
toUri: /en/homepage.html
but i can still browse /mk.html
so I added another entry
fromUri: /en.*
toUri: /en/homepage.html
and this caused Exception (I guess because of the loop)
/en.* is considered as /en* (without dot)
to ensure this I tried /en.h* also (it was the same)
and /en.ht* and /en.htm* (this passed)
I debugged a little and figure out that the possible problem might be regex pattern
that is replaced for the wildcard *
and the most interesting was that /en.whatever also lets me browse the /en
without any VirtualUriMappings
i can't think of any possible security issues caused by this,
but yet this is not such a good thing...