Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-10765

Failed registration for virtual hosts with similar mount points

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • Release Branch 18.12, Release Branch 17.12, Trunk
    • 17.12.01, 18.12.01
    • framework
    • None

    Description

      The registration of webapps with virtual hosts using similar mount points does not work.

      Example

      The following webapps should be registered (virtual host/ mount point)

      • host1/webcontent
      • host2/webcontent

      During registration, the name of the context is implicitly set through the setPath(...) method in org.apache.catalina.core.StandardContext if not already set. In the above example, the name will be set as "/webcontent".

      Wenn the context is added, it is checked if a child under the name is already registered and the addition will be refused.

      The solution would be to explicitly set the name from the webappInfo.name before the path is set. I will provide a patch for it.

       

      Attachments

        Issue Links

          Activity

            People

              mbrohl Michael Brohl
              mbrohl Michael Brohl
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: