Resources in the META-INF/resources directory are not served from attached web fragments

Description

Static resources in a web fragments under the META-INF/resources directory should be included when satisfying requests in the web app. This isn't the case when fragments are deployed and attached to a WAB via the <Require-Bundle> manifest entry as described in the web-fragment sample.

I've created a quick patch which seems to solve the issue for me (though it might not be the neatest solution). The WebAppHttpContext searches the class space bundles for the requested resource, in the same way the WebAppParser does for web-fragments.xml files when building the webapp

Environment

None

Status

Assignee

Achim Nierbeck

Reporter

Alexander Lorenzi

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure