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

HostBasedVirtualURIMapping should select the best matching configured host regardless of order

    XMLWordPrintable

Details

    • Yes

    Description

      The simple matching fails in the situation where one of the hosts to match is a subdomain. The matching should select the correct host in this situation as well.

      For example, Host mappings are:
      1. mysite.com
      2. subdomain.mysite.com
      Incoming request has host: subdomain.mysite.com

      With the current matching strategy (simple check if requested host ends with mapping) both mappings would match, so order would be important.

      We should ensure that if one mapping is a more accurate match, that it should be selected.
      And for good measure, we should ensure that the configured mappings are evaluated in the order that they are in the configuration tree. (Though this is less important if the matching algorithm is improved.)

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                czimmermann Christopher Zimmermann
                cringele Christian Ringele
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD