Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-10955

RepoInit documentation contains confusing example for single-valued rep:glob restriction

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Repoinit
    • None

    Description

      bdelacretaz, just came across the following examples on the documentation page for the Sling RepoInit feature at https://sling.apache.org/documentation/bundles/repository-initialization.html

      # restrictions with glob patterns
          allow jcr:addChildNodes on /apps,/content restriction(rep:glob,/cat,/cat/,cat)
          allow jcr:addChildNodes on /apps,/content restriction(rep:glob,cat/,*,*cat)
          allow jcr:addChildNodes on /apps,/content restriction(rep:glob,/cat/*,*/cat,*cat/*)
      

      the rep:glob restriction defined with Jackrabbit Oak is single-valued
      while i admit that this could just be viewed as a random, the fact that there is an restriction with the given name, might create a false impression and consumers of the documentation might actually believe this is valid.

      i would suggest to either use an arbitrary restriction name or if using rep:glob change the examples such that they would actually work in a setup based on Jackrabbit

      Attachments

        Activity

          People

            Unassigned Unassigned
            angela Angela Schreiber
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: