Hi, I'm already working on Pax Web currently (starting R7 support), I will take a look on this one as well.
Regards JB On 31/07/2019 06:44, Grzegorz Grzybek wrote: > Hello > > This could be a bug. > There are two more issues related to incorrect implementation of R6 > Whiteboard: > - https://ops4j1.jira.com/browse/PAXWEB-1123 > - https://ops4j1.jira.com/browse/PAXWEB-1124 > > Please create PAXWEB issue for this. > > I'm going to switch to PAXWEB soon (after finishing my > refactoring/polishing/cleaning work at PAXLOGGING) and review R6 (and > R7) compliance. > > regards > Grzegorz Grzybek > > wt., 30 lip 2019 o 22:06 Nhut Thai Le <[email protected] > <mailto:[email protected]>> napisał(a): > > Hello, > > 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 > > <http://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$ > ..... > } > } > > But 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 ? > > Thai > -- > -- > ------------------ > OPS4J - http://www.ops4j.org - [email protected] > <mailto:[email protected]> > > --- > You received this message because you are subscribed to the Google > Groups "OPS4J" group. > To unsubscribe from this group and stop receiving emails from it, > send an email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > > https://groups.google.com/d/msgid/ops4j/7437580c-041a-4fa8-ba18-39836f4d3c30%40googlegroups.com > > <https://groups.google.com/d/msgid/ops4j/7437580c-041a-4fa8-ba18-39836f4d3c30%40googlegroups.com?utm_medium=email&utm_source=footer>. > > -- > -- > ------------------ > OPS4J - http://www.ops4j.org - [email protected] > > --- > You received this message because you are subscribed to the Google > Groups "OPS4J" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ops4j/CAAdXmhqZkwQP2byi3Y4HrE8ZYM3AGscQKTE%3D%2BDeoXR2U4pkYQA%40mail.gmail.com > <https://groups.google.com/d/msgid/ops4j/CAAdXmhqZkwQP2byi3Y4HrE8ZYM3AGscQKTE%3D%2BDeoXR2U4pkYQA%40mail.gmail.com?utm_medium=email&utm_source=footer>. -- -- ------------------ OPS4J - http://www.ops4j.org - [email protected] --- You received this message because you are subscribed to the Google Groups "OPS4J" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ops4j/a61453d9-f1b9-87d7-87a3-75d42b60852c%40gmail.com.
