[jira] [Updated] (OFBIZ-10765) Failed registration for virtual hosts with similar mount points

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (OFBIZ-10765) Failed registration for virtual hosts with similar mount points

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-10765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Brohl updated OFBIZ-10765:
----------------------------------
    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.

 

  was:
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.

 


> Failed registration for virtual hosts with similar mount points
> ---------------------------------------------------------------
>
>                 Key: OFBIZ-10765
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-10765
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Trunk, Release Branch 17.12
>            Reporter: Michael Brohl
>            Assignee: Michael Brohl
>            Priority: Blocker
>
> 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.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)