codahale/dropwizard — pull request #208 by fleaflicker (2012-11-07 20:23:37+00:00)
Title: Fix and tests for issue #165: AssetServlet no longer resolves resources correctly

Fix for correctly resolving URLs when there is more than one directory on the classpath with the same name.

Storing the root resource as a fully-qualified URL and not a relative URI string meant that AssetServlet couldn't correctly load the resources if there are two directories on the classpath with the same name (this actually happens a lot, e.g., module1/javascripts, module2/javascripts).

I completely removed the method ResourceURL#resolveRelativeURL because it was encouraging this incorrect behavior (and isn't used anywhere else).