codahale/dropwizard — pull request #244 by mikekirby (2012-12-22 01:05:23+00:00)
Title: Update dropwizard-core/src/main/java/com/yammer/dropwizard/assets/AssetS...

...ervlet.java

when using AssetsBundle:
bootstrap.addBundle(new AssetsBundle("/assets", "/", "/index.htm"));

a trailing '/' is tacked on in AssetServlet:

this.resourcePath = trimmedPath.isEmpty() ? trimmedPath : trimmedPath + "/";

When the asset is requested from:
requestedResourceURL = Resources.getResource(absoluteRequestedResourcePath + '/' + indexFile);

another '/' is tacked on making it:
assets//index.htm

this works fine for files in the Unix filesystem
but fails when trying to load resources from the jar
and ends up throwing a 404.

I am not sure of the impact, so I focused a patch on the smallest isolated area of my issue.