You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (JIRA)" <ji...@apache.org> on 2015/06/18 13:30:02 UTC

[jira] [Assigned] (SLING-4812) Incorrect event handling for initially empty dictionary

     [ https://issues.apache.org/jira/browse/SLING-4812?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konrad Windszus reassigned SLING-4812:
--------------------------------------

    Assignee: Konrad Windszus

> Incorrect event handling for initially empty dictionary
> -------------------------------------------------------
>
>                 Key: SLING-4812
>                 URL: https://issues.apache.org/jira/browse/SLING-4812
>             Project: Sling
>          Issue Type: Bug
>    Affects Versions: i18n 2.4.2
>            Reporter: Konrad Windszus
>            Assignee: Konrad Windszus
>
> Currently the Event Handler of the {{JcrResourceBundleProvider}} only invalidates the caches if there was some modification on or below one of the {{languageRootPaths}} (https://github.com/apache/sling/blob/trunk/bundles/extensions/i18n/src/main/java/org/apache/sling/i18n/impl/JcrResourceBundleProvider.java#L180). Since empty dictionaries (without any messages) are not added to the {{languageRootPaths}} (https://github.com/apache/sling/blob/trunk/bundles/extensions/i18n/src/main/java/org/apache/sling/i18n/impl/JcrResourceBundle.java#L199) the following use case is not supported
> # create a new empty dictionary without any entries
> # create an entry below the empty dictionary
> If between step 1 and 2 the i18n bundle is not reloaded the newly created entry is not detected and therefore not part of any JcrResourceBundle.



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