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

J.W. Janssen closed FELIX-772.
------------------------------

    Resolution: Not A Problem

Problems appeared to be a quirck in Jetty 4...

> Resources referenced by local URLs in HTML pages
> ------------------------------------------------
>
>                 Key: FELIX-772
>                 URL: https://issues.apache.org/jira/browse/FELIX-772
>             Project: Felix
>          Issue Type: Bug
>          Components: HTTP Service
>            Reporter: Rob Walker
>            Priority: Minor
>
> The problem below seems to have surfaced in the latest Jetty6 version
> * Register a resource alias e.g.
>             srvHttp.registerResources("/VtWebUi, "", myContext);
> * When an empty or / request comes in - e.g. rhttp://localhost:8084:/VtWebUi 
> - have the resource context resolve these to return an HTML page such as an 
> entry page e.g.
>         public URL getResource(String name)
>         {
>             if (name.equals("/") || name.length() == 0)
>             {
>                 name = "/VtWebUi.html";
>             }
>             ....
> * Subsequent "relative" URL resource references (or at least some of them) 
> fail to be found> This is because they in with a path of /local-resource, 
> rather than prefixed with the alias e.g. /VtWebUi/local-resource, and hence 
> don't get routed to the resource context to resolve them
> * A fully expanded request for the HTML page will work fine e.g. 
> http://localhost:8084/VtWebUi/VtWebUi.html . Again, this is because the 
> relative URLs for embedded resources come in with the /VtWebUi prefix needed 
> for alias matching
> Note: The issue may be a local issue with our application / and the way we 
> use GWT.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to