Whiteboard Implementation does not handle R6 resource registration patterns

Description

The current whiteboard implementation does not handle service registrations for resource definitions correctly. According to Enterprise R6 Specification 140.6 (Registering Resources) the service property "osgi.http.whiteboard.resource.pattern" allows to define certain patterns:

  • "/path/*" – for path mapping,

  • "*. – for extension mapping,

  • "" – for context root,

  • "/" – for default servlet,

  • any other string – for exact mapping.

Registering a mapping to a folder, e.g. /www, inside of the bundle that holds resources should use the first pattern, e.g. "/assets/*". But the current implementation requires to use "/assets" as pattern.

Environment

None

Status

Assignee

Grzegorz Grzybek

Reporter

Peter Schyma

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure