Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-13222

Duplicated hst host path is not detected

    XMLWordPrintable

Details

    • Improvement
    • Status: Review
    • Normal
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • 0.2
    • Quasar
    • Puma Sprint 234, Puma Sprint 235, Puma Sprint 236, Puma Sprint 237

    Description

      It might happen that different host groups contain the same host path hierarchy. On this configuration mistake, there's no warning logged and the hst will match and use one of the entries. Reproduction path using pagemodelapi:

      1. Create a project from latest archetype and run it
      2. using the console, create a copy of the virtualhostgroup node dev-localhost, name it dev-localhost-2
      3. enable pagemodelapi on /hst:hosts/dev-localhost/localhost/hst:root and name it resourceapi
      4. enable pagemodelapi on hst:hosts/dev-localhost-2/localhost/hst:root and name it resourceapi2
      5. access the rest api from the site http://localhost:8080/site/resourceapi => 404 Not found
      6. access the rest api from the site http://localhost:8080/site/resourceapi2 => 200 Ok

      The behaviour for steps 5 and 6 can randomly generate 404/200 depending on which of the virtualhosts will be matched first.

       

      Attachments

        Issue Links

          Activity

            People

              aschrijvers Ard Schrijvers
              smuco Saimir Muco (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: