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

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

The issue is caused by a bug in the SlingAnnotationProcessor (FELIX-4648). 
Until that issue is fixed, that property could be set manually, like it is done 
currently in the RewriterFilter 
(https://github.com/apache/sling/blob/trunk/contrib/extensions/rewriter/src/main/java/org/apache/sling/rewriter/impl/RewriterFilter.java#L44)

> 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