[
https://issues.apache.org/jira/browse/SLING-6089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15541493#comment-15541493
]
Chetan Mehrotra edited comment on SLING-6089 at 10/3/16 4:24 AM:
-----------------------------------------------------------------
This seems to work if instead of using the pattern property we use the new std
whiteboard properties
{noformat}
osgi.http.whiteboard.context.select=(osgi.http.whiteboard.context.name=*)
osgi.http.whiteboard.filter.pattern=/
{noformat}
compared to earlier
{noformat}
pattern=/.*
{noformat}
[~cziegeler] Is there any way to have filter make use of whiteboard pattern and
be usable on older system (having older whiteboard implementation) and newer
system? I can register the service with both old and new property but that
causes a warning log
{noformat}
02.10.2016 22:08:04.718 *WARN* [FelixFrameworkWiring]
org.apache.felix.http.whiteboard Deprecation warning: Filter registered through
Apache Felix whiteboard service: [javax.servlet.Filter]. Please change your
code to the OSGi Http Whiteboard Service.
{noformat}
Or for such cases I would have to make use of {{HttpService}} . But then I do
not think old implementation provided support for registering filters.
Basically I am looking for a way to have this bundle be usable on any system
having whiteboard implementation (old or new)
was (Author: chetanm):
This seems to work if instead of using the pattern property we use the new std
whiteboard properties
{noformat}
osgi.http.whiteboard.context.select=(osgi.http.whiteboard.context.name=*)
osgi.http.whiteboard.filter.pattern=/
{noformat}
compared to earlier
{noformat}
pattern=/.*
{noformat}
[~cziegeler] Is there any way to have filter make use of whiteboard pattern and
be usable on older system (having older whiteboard implementation) and newer
system?
Or for such cases I would have to make use of {{HttpService}} . But then I do
not think old implementation provided support for registering filters.
Basically I am looking for a way to have this bundle be usable on any system
having whiteboard implementation (old or new)
> Log Tracer does not work with system having new HTTP whiteboard implementation
> ------------------------------------------------------------------------------
>
> Key: SLING-6089
> URL: https://issues.apache.org/jira/browse/SLING-6089
> Project: Sling
> Issue Type: Bug
> Components: Extensions
> Reporter: Chetan Mehrotra
> Assignee: Chetan Mehrotra
> Fix For: Log Tracer 1.0.2
>
>
> Log Tracer does not work with Sling setups which have newer HTTP Whiteboard
> implementation (org.apache.felix.http.whiteboard:3.0.0). Currently the filter
> is registered with service property
> {noformat}
> pattern=/.*
> {noformat}
> The filter does gets used for calls to /system/console but does not get
> invoked for any calls which are handled by SlingMainServlet (as reported by
> [~bdelacretaz]
> [here|http://mail-archives.apache.org/mod_mbox/sling-dev/201609.mbox/%3CCAEWfVJ%3DWUVaoD9GOTD3WpL7PSEh9_Jk3maP2WPEWWTc7dbCftw%40mail.gmail.com%3E])
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)