You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2016/10/03 04:19:20 UTC
[jira] [Commented] (SLING-6089) Log Tracer does not work with
system having new HTTP whiteboard implementation
[ https://issues.apache.org/jira/browse/SLING-6089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15541493#comment-15541493 ]
Chetan Mehrotra commented on SLING-6089:
----------------------------------------
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)