Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-549

Regex Problem with VirtualURIMapping

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.0 Beta 1
    • 2.1 Final
    • core
    • 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...

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              scharles Sameer Charles
              fleka Stojan Peshov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD