Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Repoinit JCR 1.1.34
-
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