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

RegexpVirtualUriMapping not working as expected when start with ^

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not an issue
    • Normal
    • None
    • None
    • None
    • None

    Description

      Steps to reproduce

      1. Start a Magnolia instance and import the attached light module (first-module) which has a virtualUriMapping configuration
      2. Go to Site app and import the attached file config.modules.multisite.config.sites.mySite.xml
      3. Go to Pages-app and import the attached file website.mySite.yaml
      4. Navigate to http://localhost:8080/magnoliaAuthor/mySite/allowed/page1 and check that the page is shown as expected, 200 result and no 301 redirect
      5. Navigate to http://localhost:8080/magnoliaAuthor/mySite/forbidden/page1 and check that the page is shown as expected, 200 result and no 301 redirect

      Expected results

      /mySite/forbidden/page1 doesn't match the pattern so no redirect
      /mySite/allowed/page1 does match the pattern so it goes through 301 redirect (permanent)

      Actual results

      /mySite/allowed/page1 doesn't match the pattern so its server as 200

      Workaround

      N/A

      Development notes

      Check the debug attachment

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              oanh.thai Oanh Thai Hoang
              ccantalapiedra Carlos Cantalapiedra
              DeveloperX
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD

                  Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 5.5h
                    5.5h