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

Konrad Windszus edited comment on SLING-5660 at 3/1/17 8:10 AM:
----------------------------------------------------------------

It might be related to the fact that the EventHandler only looks for changes 
below a folder called {{validation}} 
(https://github.com/apache/sling/blob/trunk/bundles/extensions/validation/core/src/main/java/org/apache/sling/validation/impl/resourcemodel/ResourceValidationModelProviderImpl.java#L120)
 while the XPath query finds validation resource models everywhere below the 
search paths (SLING-4157). I think we cannot easily get rid of the path 
requirement, because otherwise the cache would be invalidated way too often 
(for every change within the resource resolver's search paths). Relying on the 
resource type is not possible, as that is not available for removed resource 
events.


was (Author: kwin):
It might be related to the fact that the EventHandler only looks for changes 
below a folder called {{validation}} 
(https://github.com/apache/sling/blob/trunk/bundles/extensions/validation/core/src/main/java/org/apache/sling/validation/impl/resourcemodel/ResourceValidationModelProviderImpl.java#L120)
 while the XPath query finds validation resource models everywhere below the 
search paths. I think we cannot easily get rid of the path requirement, because 
otherwise the cache would be invalidated way too often (for every change within 
the resource resolver's search paths). Relying on the resource type is not 
possible, as that is not available for removed resources.

> Validation is using outdated sling/validation/model
> ---------------------------------------------------
>
>                 Key: SLING-5660
>                 URL: https://issues.apache.org/jira/browse/SLING-5660
>             Project: Sling
>          Issue Type: Bug
>          Components: Extensions
>            Reporter: Oliver Lietz
>            Assignee: Konrad Windszus
>             Fix For: Validation 1.0.0
>
>
> The new {{sling/validation/model}} (one property removed) was used only after 
> restarting Validation bundles: 
> {{sling.validator.missing-required-property-with-name}}, {{location}} was 
> empty.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to