Uploaded image for project: 'eXo-JCR'
  1. eXo-JCR
  2. EXOJCR-1866

Incorrect using nodeData() in NodeImpl.addNode methods

    Details

      Description

      For NodeImpl.addNode methods relative path is using to indicate to which parent node child node should be added. But for getting NodeDefinitionData

            NodeDefinitionData nodeDef =
               session.getWorkspace().getNodeTypesHolder().getChildNodeDefinition(name, nodeData().getPrimaryTypeName(),
                  nodeData().getMixinTypeNames());
      

      nodeData() is using which correct only in case when relative path contains child node name only.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tolusha Anatolii Bazko
                Reporter:
                tolusha Anatolii Bazko
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Remaining Estimate - 1 day
                  1d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified