You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not very common, I agree. But it may happen (it actually did in our project). I think conceptually "not found" and "empty" should be treated differently, but it is not that bad I guess.
https://github.com/alexo/wro4j/blob/1.7.x/wro4j-core/src/main/java/ro/isdc/wro/model/resource/locator/support/DispatcherStreamLocator.java#L106
is not a valid way to compute the servletContextPath.
Consider:
Request url: http://foo.bar:80/resources/some.css
Servlet path: ""
Location: /some_other.css
The resulting request will be made to http://foo.bar:80/resources/some.css/some_other.css which is obviously wrong.
Alternatively the servletContextPath can be computed by using something like:
I'm also not sure https://github.com/alexo/wro4j/blob/1.7.x/wro4j-core/src/main/java/ro/isdc/wro/model/resource/locator/support/DispatcherStreamLocator.java#L92 is the best way to identify errors with the dispatcher location. A valid resource can simply be empty.
The text was updated successfully, but these errors were encountered: