[
https://issues.apache.org/jira/browse/SLING-10406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bertrand Delacretaz closed SLING-10406.
---------------------------------------
> AclVisitor.visitCreatePath: retry if no default primary type can be found
> -------------------------------------------------------------------------
>
> Key: SLING-10406
> URL: https://issues.apache.org/jira/browse/SLING-10406
> Project: Sling
> Issue Type: Improvement
> Components: Repoinit
> Affects Versions: Repoinit JCR 1.1.34
> Reporter: Angela Schreiber
> Assignee: Angela Schreiber
> Priority: Minor
> Fix For: Repoinit JCR 1.1.36
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> 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]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)