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

Konrad Windszus commented on SLING-3954:
----------------------------------------

A quick search for the annotation 
(https://github.com/apache/sling/search?utf8=%E2%9C%93&q=SlingFilter&type=Code) 
exposes that right now really only the i18n filter is affected by the bug in 
the scr-annotations. So until version 1.9.10 is released in which that issue is 
fixed, it is worth implementing the workaround outlined in my previous 
comments. WDYT?

> i18n filter still not called for error scripts
> ----------------------------------------------
>
>                 Key: SLING-3954
>                 URL: https://issues.apache.org/jira/browse/SLING-3954
>             Project: Sling
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: i18n 2.2.6, i18n 2.2.8, i18n 2.2.10
>            Reporter: Konrad Windszus
>
> Although this is fixed in the annotation in SLING-2705, the annotation is not 
> correctly considered when the service xml is being generated. All versions 
> 2.2.6, 2.2.8 and 2.2.10 are affected. 
> The OSGI-INF/org.apache.sling.i18n.impl.I18NFilter.xml looks like this in all 
> three versions
> {code}
> <?xml version="1.0" encoding="UTF-8"?><components 
> xmlns:scr="http://www.osgi.org/xmlns/scr/v1.2.0";>
>     <scr:component name="org.apache.sling.i18n.impl.I18NFilter">
>         <implementation class="org.apache.sling.i18n.impl.I18NFilter"/>
>         <service servicefactory="false">
>             <provide interface="javax.servlet.Filter"/>
>         </service>
>         <property name="service.ranking" type="Integer" value="-700"/>
>         <property name="sling.filter.scope" value="REQUEST"/>
>         <property name="pattern" value="/.*"/>
>         <property name="service.description" value="Internationalization 
> Support Filter"/>
>         <property name="service.vendor" value="The Apache Software 
> Foundation"/>
>         <property name="service.pid" 
> value="org.apache.sling.i18n.impl.I18NFilter"/>
>         <reference name="localeResolver" 
> interface="org.apache.sling.i18n.LocaleResolver" cardinality="0..1" 
> policy="dynamic" bind="bindLocaleResolver" unbind="unbindLocaleResolver" 
> policy-option="greedy"/>
>         <reference name="requestLocaleResolver" 
> interface="org.apache.sling.i18n.RequestLocaleResolver" cardinality="0..1" 
> policy="dynamic" bind="bindRequestLocaleResolver" 
> unbind="unbindRequestLocaleResolver" policy-option="greedy"/>
>         <reference name="resourceBundleProvider" 
> interface="org.apache.sling.i18n.ResourceBundleProvider" cardinality="0..n" 
> policy="dynamic" bind="bindResourceBundleProvider" 
> unbind="unbindResourceBundleProvider"/>
>     </scr:component>
> </components>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to