igloo-parent icon indicating copy to clipboard operation
igloo-parent copied to clipboard

wicket-webjars: insufficient webjars pattern matching rule

Open lalmeras opened this issue 2 years ago • 0 comments

In de.agilecoders.wicket.webjars.collectors.AssetsMap.listAssets(String), matching is done with a asset.startsWith(prefix) condition.

If folderPath := "bootstrap" and asset := "META-INF/resources/webjars/bootstrap4/4.6.1/..." then resource will match.

Does wicket-webjars need a fix ? This behavior (matching with a startsWith without a path separator does not seem to be intended; we need to check wicket-webjars expected behavior and/or unit tests).

Encountered on ft-deploy-bs5, but this issue may be present on released versions.

lalmeras avatar Jul 05 '22 11:07 lalmeras