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

AclVisitor.visitCreatePath: retry if no default primary type can be found

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Repoinit JCR 1.1.34
    • Repoinit JCR 1.1.36
    • Repoinit
    • None

    Description

      today AclVisitor.visitCreatePath fails if a given PathSegmentDefinition doesn't have any primary type name specified and JCR fails to determined a default primary type from the effective node type of the parent node.

      this usually happens when the parent node is of type "nt:folder" which unfortunately doesn't specify a default primary type to use for Node.addNode(String name) i.e. child node creation without explicit primary type name.

      for these cases i would like to suggest to retry with "sling:Folder". reason for not using "nt:folder" is that "sling:Folder" comes with a default primary type and the following create path statement would only have to retry once (instead of retrying for each segment):
      create path /node_with_nt_folder/a/new/subtree/but/missing/type/info

      cc: kpauls

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h