Re: Parameter Support, Filters and Missing Parameters

2017-02-23 Thread Andreas Schaefer Sr.
I created a ticket for that: https://issues.apache.org/jira/browse/SLING-6559 and attached a simple project that can be built with: mvn clean install With Composum it can also be auto-deployed (include the Trace Logger): mvn

Re: Parameter Support, Filters and Missing Parameters

2017-02-23 Thread Andreas Schaefer Sr.
I finally was able to place my filter where I wanted it. I could not figure it out in the Sling source but the bundle provided my the necessary info. This is the Filter Service configuration to make it appear right after the SSL Filter: @Component( immediate = true, label="Parameter Issue

Re: Parameter Support, Filters and Missing Parameters

2017-02-20 Thread Andreas Schaefer Sr.
Hi Julian Thanks for the help. I tried to figure out how the I18NFilter is registered in Sling but it eludes me. Any hint would be appreciated. Cheers - Andy > On Feb 20, 2017, at 1:47 AM, Julian Sedding wrote: > > Hi Andy > > You can register a javax.servlet.Filter

Re: Parameter Support, Filters and Missing Parameters

2017-02-20 Thread Julian Sedding
Hi Andy You can register a javax.servlet.Filter with Sling OR with the Felix Whiteboard. If you want to run before the SlingMainServlet, you have to register your filter in the Felix whiteboard (which is what the I18NFilter does). Note that you will not have access to SlingHttpServletRequest

Re: Parameter Support, Filters and Missing Parameters

2017-02-17 Thread Andreas Schaefer Sr.
Hi I tried to create a Filter to showcase the issue but I do fail with the latest code base. The reason is that I cannot add a filter ahead of the Sling Main Servlet even though there is the I18N and SSL Filter that are running ahead of it. For a customer I use that in order to adjust the query

Re: Parameter Support, Filters and Missing Parameters

2017-02-16 Thread Robert Munteanu
Hi Andy, On Tue, 2017-02-14 at 14:05 -0800, Andreas Schaefer Sr. wrote: > While working on AEM 6.2 SP1 with a Servlet Filter > I came across issues with the Parameter Support > as they interfere with the Servlet Filters or at least > with Servlet Filters that are handled before entering > the

Parameter Support, Filters and Missing Parameters

2017-02-14 Thread Andreas Schaefer Sr.
While working on AEM 6.2 SP1 with a Servlet Filter I came across issues with the Parameter Support as they interfere with the Servlet Filters or at least with Servlet Filters that are handled before entering the “Sling domain”. 1) Because of the SlingHttpContext.handleSecurity() the Parameter