Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

childrenOfPath exclusion now obeys wildcard paths for exceptions. #371

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Commits on Nov 9, 2019

  1. childrenOfPath exclusion now obeys wildcard paths for exceptions.

    When an include predicate uses a childrenOfPath exclude statement,
    exceptions would not evaluate Unicorn wildcard paths. This has been updated to
    use a path segment comparison to ensure that any configured unicorn,
    wildcard paths get correctly identified as an exception.
    
    Example CoP configuration:
    
    			  <include name="Data" database="master" path="/sitecore/content/MyTenant/MySite/Data">
    				  <exclude childrenOfPath="*">
    					  <except name="Component Library"></except>
    				  </exclude>
    			  </include>
    
    * Added two new methods to the PathTool class to provide consistency
    with path comparisons.
    * Item path escaping rules for Sitecore wildcard items have been
    "inversed" in the ChildrenOfPathBasedPresetTreeExclusion class for
    exceptions. This was done since it was possible to define a configuration where path
    comparisons would previously incorrectly match against Sitecore wildcard
    items.
    justinlaster-sage committed Nov 9, 2019
    Configuration menu
    Copy the full SHA
    3488a69 View commit details
    Browse the repository at this point in the history