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

Failed registration for virtual hosts with similar mount points

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: Release Branch 18.12, Release Branch 17.12, Trunk
    • Fix Version/s: 18.12.01, 17.12.01
    • Component/s: framework
    • Labels:
      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

            • Assignee:
              mbrohl Michael Brohl
              Reporter:
              mbrohl Michael Brohl

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment