Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 6.1.0
-
Fix Version/s: None
-
Component/s: Servlet
-
Labels:None
-
Environment:maven2 using 6.1-SNAPSHOT jetty plugin
-
Number of attachments :
Description
I have a web application experiencing some broken links when context relative image paths are referenced in embedded css file references.
The directory layout consists of one static "/js/" context directory containing a dojo build. Everything works for the most part besides one tiny portion. Specifically when including a css file with a path of:
http://localhost:8080/js/dojo/src/widget/templates/DatePicker.css
I get my css file served up just fine, but the following type of block contained in said css file is where things get messed up:
.calendarBodyContainer {
width:100%; /* needed for the explode effect (explain?) */
background: #7591bc url("images/dpBg.gif") top left repeat-x;
}
The above "images/dpBg.gif" url reference will be interpreted by the browser and cause a request going out looking exactly like:
http://localhost:8080/js/dojo/src/widget/templates/DatePicker.cssimages/dpBg.gif
This currently returns a 404 not found error. I ran into a similar issue while working on bundling dojo with Tapestry and had to handle relative image css paths. My perhaps questionable solution was in the "translateCssPath" method found in this source file:
I'm not sure what this has to do with jetty?
Jetty does not generate the content and the resulting
URL is really a 404?
How do you see jetty helping with this?