Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-779

Add rep:Authorizable to declaringNodeTypeNames of rep:principalName index

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.7
    • core
    • None

    Description

      Currently the UserInitializer creates a rep:principalName index with two declaring node type names: rep:User and rep:Group.

      This allows query to make use of the index when they select the user or group node type, but the query engine cannot use this index when the select is for rep:Authorizable.

      Adding rep:Authorizable will do the trick even though it looks a bit strange, since rep:Authorizable is an abstract node type and you cannot create a node with this type. However it allows the query engine to leverage the index for rep:Authorizable and is correct in this case. rep:User and rep:Group are the only sub node types of rep:Authorizable, which means the index will contain all rep:Authorizable.

      Attachments

        Activity

          People

            mreutegg Marcel Reutegger
            mreutegg Marcel Reutegger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: