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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to