Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-1940

Front-Office recognizes any extension for a page

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.2.0
    • None
    • None
    • None

      for example www.mysite.com/fr/index.htmluyyieooer will answer the index.html page (but as the extension is not recognized by browser, it displays as plain text

          [CMS-1940] Front-Office recognizes any extension for a page

          How to reproduce

          • Create a page, for example "Test"
          • Add a service to be sure that the page will be published
          • Connect to site and access to the page http://<host:port>/Test.html
          • then add or remove chars, for example http://<host:port>/Test.ht or http://<host:port>/Test.htmlabc

          Actual behavior

          • the page is generated and available in the cache
          • the code of the page is displayed instead of the page

          Expected behavior

          • a 404 or the page is displayed correctly but I think a 404 should b better because "Test.htmlabc" is not a page.

          Note

          • It works with Test.htm because it is recognized by the browser as Web page

          I think it looks like the https://issues.ametys.org/browse/RUNTIME-557

          Frederic Ravetier (Inactive) added a comment - How to reproduce Create a page, for example "Test" Add a service to be sure that the page will be published Connect to site and access to the page http://<host:port>/Test.html then add or remove chars, for example http://<host:port>/Test.ht or http://<host:port>/Test.htmlabc Actual behavior the page is generated and available in the cache the code of the page is displayed instead of the page Expected behavior a 404 or the page is displayed correctly but I think a 404 should b better because "Test.htmlabc" is not a page. Note It works with Test.htm because it is recognized by the browser as Web page I think it looks like the https://issues.ametys.org/browse/RUNTIME-557

            Unassigned Unassigned
            gauthier Gauthier Ubersfeld
            Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: