You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "J.W. Janssen (JIRA)" <ji...@apache.org> on 2010/02/03 08:59:19 UTC

[jira] Created: (FELIX-2030) Webconsole cannot handle relative paths

Webconsole cannot handle relative paths
---------------------------------------

                 Key: FELIX-2030
                 URL: https://issues.apache.org/jira/browse/FELIX-2030
             Project: Felix
          Issue Type: Bug
          Components: Web Console
         Environment: Tomcat 5.5 with Apache Felix 2.0.4
            Reporter: J.W. Janssen


Similar as FELIX-2000; when embedding Felix inside a Tomcat WAR which also registers Felix's HttpProxy on a relative path the webconsole does not work correctly anymore. All (generated) links don't take the relative path of the servlet into account. For example, when mounting the HttpProxy on /foo (which should cause the systemconsole to be accessed through "/foo/system/console") the Webconsole creates links like "/system/console/bundles" and such.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (FELIX-2030) Webconsole cannot handle relative paths

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger resolved FELIX-2030.
--------------------------------------

    Resolution: Fixed

Committed the fix in Rev. 906041 and unit tests in 906042.

The fix is to consider the actual servlet path together with the container's context path instead of just the container's context path. This is of particular importance if the http bridge is used where the proxy servlet is not registered for "/*" but for something like "/osgi".

> Webconsole cannot handle relative paths
> ---------------------------------------
>
>                 Key: FELIX-2030
>                 URL: https://issues.apache.org/jira/browse/FELIX-2030
>             Project: Felix
>          Issue Type: Bug
>          Components: HTTP Service
>    Affects Versions: http-2.0.4
>         Environment: Tomcat 5.5 with Apache Felix 2.0.4
>            Reporter: J.W. Janssen
>            Assignee: Felix Meschberger
>             Fix For: http-2.0.6
>
>
> Similar as FELIX-2000; when embedding Felix inside a Tomcat WAR which also registers Felix's HttpProxy on a relative path the webconsole does not work correctly anymore. All (generated) links don't take the relative path of the servlet into account. For example, when mounting the HttpProxy on /foo (which should cause the systemconsole to be accessed through "/foo/system/console") the Webconsole creates links like "/system/console/bundles" and such.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FELIX-2030) Webconsole cannot handle relative paths

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger updated FELIX-2030:
-------------------------------------

          Component/s:     (was: Web Console)
                       HTTP Service
    Affects Version/s: http-2.0.4
        Fix Version/s: http-2.0.6

Thanks for reporting this issue. This is another issue with the ServletHandlerRequest class of the Http Base implementation. This should handle the getContextPath() method and return the concatenation of its own context path and servlet path instead of just the container's context path.

> Webconsole cannot handle relative paths
> ---------------------------------------
>
>                 Key: FELIX-2030
>                 URL: https://issues.apache.org/jira/browse/FELIX-2030
>             Project: Felix
>          Issue Type: Bug
>          Components: HTTP Service
>    Affects Versions: http-2.0.4
>         Environment: Tomcat 5.5 with Apache Felix 2.0.4
>            Reporter: J.W. Janssen
>            Assignee: Felix Meschberger
>             Fix For: http-2.0.6
>
>
> Similar as FELIX-2000; when embedding Felix inside a Tomcat WAR which also registers Felix's HttpProxy on a relative path the webconsole does not work correctly anymore. All (generated) links don't take the relative path of the servlet into account. For example, when mounting the HttpProxy on /foo (which should cause the systemconsole to be accessed through "/foo/system/console") the Webconsole creates links like "/system/console/bundles" and such.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (FELIX-2030) Webconsole cannot handle relative paths

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger reassigned FELIX-2030:
----------------------------------------

    Assignee: Felix Meschberger

> Webconsole cannot handle relative paths
> ---------------------------------------
>
>                 Key: FELIX-2030
>                 URL: https://issues.apache.org/jira/browse/FELIX-2030
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>         Environment: Tomcat 5.5 with Apache Felix 2.0.4
>            Reporter: J.W. Janssen
>            Assignee: Felix Meschberger
>
> Similar as FELIX-2000; when embedding Felix inside a Tomcat WAR which also registers Felix's HttpProxy on a relative path the webconsole does not work correctly anymore. All (generated) links don't take the relative path of the servlet into account. For example, when mounting the HttpProxy on /foo (which should cause the systemconsole to be accessed through "/foo/system/console") the Webconsole creates links like "/system/console/bundles" and such.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Work started: (FELIX-2030) Webconsole cannot handle relative paths

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on FELIX-2030 started by Felix Meschberger.

> Webconsole cannot handle relative paths
> ---------------------------------------
>
>                 Key: FELIX-2030
>                 URL: https://issues.apache.org/jira/browse/FELIX-2030
>             Project: Felix
>          Issue Type: Bug
>          Components: HTTP Service
>    Affects Versions: http-2.0.4
>         Environment: Tomcat 5.5 with Apache Felix 2.0.4
>            Reporter: J.W. Janssen
>            Assignee: Felix Meschberger
>             Fix For: http-2.0.6
>
>
> Similar as FELIX-2000; when embedding Felix inside a Tomcat WAR which also registers Felix's HttpProxy on a relative path the webconsole does not work correctly anymore. All (generated) links don't take the relative path of the servlet into account. For example, when mounting the HttpProxy on /foo (which should cause the systemconsole to be accessed through "/foo/system/console") the Webconsole creates links like "/system/console/bundles" and such.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.