Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
i18n 2.2.6, i18n 2.2.8, i18n 2.2.10
-
None
Description
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
<?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>
Attachments
Issue Links
- is blocked by
-
FELIX-4648 SlingAnnotationProcessor.processSlingFilter cannot deal with multiple scopes
- Closed
- relates to
-
SLING-2705 I18n filter not called for error scripts
- Closed