Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-2143

Registering a Nodetype based on an existing NodeType fail

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.6, 2.0-alpha1
    • 2.0-alpha3
    • jackrabbit-core
    • None

    Description

      If I create a new NodeTypeTemplate using the code show below,

      NodeTypeManagerImpl ntm = (NodeTypeManagerImpl) session.getWorkspace().getNodeTypeManager();
      NodeTypeDefinition nt = (NodeTypeDefinition) ntm.getNodeType("wr:entity");
      NodeTypeTemplate ntt = ntm.createNodeTypeTemplate(nt);

      the list of declaredSuperType contains the same name of the original nodeType (repeted twice) and not the declaredSuperType of the original nodeType (in this example [nt:base, nt:file])

      ntt.getDeclaredSupertypeNames(); -> [wr:entity, wr:entity]

      Attachments

        Activity

          People

            Unassigned Unassigned
            luca.tagliani Luca Tagliani
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: