We're updating the issue view to help you get more done. 

filter.init service property in pax-web-extender-whiteboard 7.2.4 does not populate FilterConfig object correctly

Description

I'm using pax-web-extender-whiteboard 7.2.4 and my servlet filter is annotated as below:
@Component(
service = Filter.class,
scope = ServiceScope.PROTOTYPE,
property = {
"osgi.http.whiteboard.filter.pattern=" + PathConstants.ROOT_PATH + "*",
"osgi.http.whiteboard.context.select=(osgi.http.whiteboard.context.name=WebviewerServletContextHelper)",
"osgi.http.whiteboard.filter.asyncSupported=true",
Constants.SERVICE_RANKING + ":Integer=1",
HttpWhiteboardConstants.HTTP_WHITEBOARD_FILTER_INIT_PARAM_PREFIX + "excludedUrls=" + PathConstants.ZKCOMET_PATH
}
)
public final class AuthenticationFilterForWebViewer implements Filter {

public void init(FilterConfig filterConfig) throws ServletException {
String excludePattern = filterConfig.getInitParameter("excludedUrls"); //$NON-NLS-1$
.....
}
}

In the init method, i got null when using filterConfig.getInitParameter("excludedUrls"). But if i use filterConfig.getInitParameter(HttpWhiteboardConstants.HTTP_WHITEBOARD_FILTER_INIT_PARAM_PREFIX + "excludedUrls") then i got the value. Is this a known bug since my understand from http whoteboard R6 is that i can get the value from FilterConfig without the filter.init prefix ?

Environment

None

Status

Assignee

Unassigned

Reporter

Nhut Thai Le

Labels

None

Affects versions

7.2.4

Priority

Major