You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Sagar Miglani (Jira)" <ji...@apache.org> on 2021/09/13 07:55:00 UTC

[jira] [Commented] (SLING-10807) Need to override osgi.http.whiteboard.context.name propery of RequestLoggerFilter

    [ https://issues.apache.org/jira/browse/SLING-10807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17413992#comment-17413992 ] 

Sagar Miglani commented on SLING-10807:
---------------------------------------

PR Link: https://github.com/apache/sling-org-apache-sling-engine/pull/19

> Need to override osgi.http.whiteboard.context.name propery of RequestLoggerFilter
> ---------------------------------------------------------------------------------
>
>                 Key: SLING-10807
>                 URL: https://issues.apache.org/jira/browse/SLING-10807
>             Project: Sling
>          Issue Type: Improvement
>          Components: Engine
>    Affects Versions: Engine 2.7.8
>            Reporter: Sagar Miglani
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> RequestLoggerFilter is unable to log access/request logs for the endpoints directly configured over the jetty server (like felix web console).
> I believe, RequestLoggerFilter filter should select all Servlet Context Helpers (similar to [ReferrerFiler:62|https://github.com/apache/sling-org-apache-sling-security/blob/1b4caa787d334d90375ab8aeb8e29dc75fcf3519/src/main/java/org/apache/sling/security/impl/ReferrerFilter.java#L62]), and to achieve that in our instance we need to override "osgi.http.whiteboard.context.name" property of RequestLoggerFilter with a corresponding object in the OSGi configuration admin service, but we can not override it as the configuration policy is set to IGNORE ([RequestLoggerFilter:46|https://github.com/apache/sling-org-apache-sling-engine/blob/master/src/main/java/org/apache/sling/engine/impl/log/RequestLoggerFilter.java#L46])



--
This message was sent by Atlassian Jira
(v8.3.4#803005)