You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (Commented) (JIRA)" <ji...@apache.org> on 2011/11/10 18:26:51 UTC

[jira] [Commented] (SLING-2277) JCR EventAdmin bridge (JcrResourceListener) is loosing event information

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

Carsten Ziegeler commented on SLING-2277:
-----------------------------------------

+1 in general, or maybe three props? One for added, one for removed and one for deleted?
                
> JCR EventAdmin bridge (JcrResourceListener) is loosing event information
> ------------------------------------------------------------------------
>
>                 Key: SLING-2277
>                 URL: https://issues.apache.org/jira/browse/SLING-2277
>             Project: Sling
>          Issue Type: Bug
>          Components: JCR
>    Affects Versions: JCR Resource 2.0.10
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>
> The JcrResourceListener translates JCR Observation events into general OSGi EventAdmin events. By this translation JCR Property level events are collated into JCR Node level events thus potentially loosing important information.
> In the concrete situation, the JCR Resource MapEntries class handles events to update the resolver mappings for vanity paths (sling:vanityPath property). The current implementation works well with adding or changing these properties since the actual resource is loaded and checked. If the property is removed, though, it of course does not exist any longer and thus the check fails and the mapping is not updated.
> In addition to just collating property level events into node level events the affected properties and operations should be kept. This can be done as simple as adding a String[] property to the OSGi Event.Each entry in the array is an event indicator character plus the full path to the affected property. The event character is '+' for added, '-' for removed, and '~' for modified. This allows for conveying the information as well as event filtering.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira