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

ASF GitHub Bot commented on SLING-4157:
---------------------------------------

GitHub user kwin opened a pull request:

    https://github.com/apache/sling/pull/34

    SLING-4157, allow models in any location

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/kwin/sling SLING-4157

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/sling/pull/34.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #34
    
----
commit b5b677ef57d2f034d7d65f8c2b84bf77cef47d0a
Author: Konrad Windszus <[email protected]>
Date:   2014-11-12T12:48:05Z

    SLING-4157, allow models in any location

----


> Allow Sling validation to pick up models in any location in the repository
> --------------------------------------------------------------------------
>
>                 Key: SLING-4157
>                 URL: https://issues.apache.org/jira/browse/SLING-4157
>             Project: Sling
>          Issue Type: Improvement
>          Components: Validation
>            Reporter: Konrad Windszus
>
> Currently only validation models being defined below
> * /apps/sling/validation/models/ and
> * /libs/sling/validation/models/ 
> are picked up
> This is due to the XPath query containing the path restriction (in 
> https://github.com/apache/sling/blob/trunk/contrib/validation/core/src/main/java/org/apache/sling/validation/impl/ValidationServiceImpl.java#L295).
> Similar to the JCR Repository based ResourceBundleProvider ( 
> http://sling.apache.org/site/internationalization-support.html) the 
> validation models should be allowed  everywhere in the repository (where apps 
> should still have higher priority than libs). That should not have a major 
> performance drawback.
> This is especially useful, if multiple different applications are deployed on 
> the same Sling instance. To be able to distinguish their scripts and 
> validation models in the repository (and to not overwrite other applications' 
> models) it should be allowed that everything belonging to that one 
> application is located below one common entry node (e.g. 
> /apps/mycoolslingapp/)



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

Reply via email to