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

Multiple namespace definitions in CND prevent definition of node type without child nodes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.1.1
    • nodetype
    • None

    Description

      The BNF in http://jackrabbit.apache.org/api-1/org/apache/jackrabbit/core/nodetype/compact/CompactNodeTypeDefReader.html
      defines:

      [...]
      cnd ::=

      {ns_mapping | node_type_def}

      [...]

      so multiple namespace definitions should not affect the node type definitions.

      However, the following CND definition will fail:

      <namespace= 'http://www.mynamespace.co.uk/namespace'>
      <nt = 'http://www.jcp.org/jcr/nt/1.0'>
      [namespace:document] > nt:file

      • namespace:name (string) mandatory

      <namespace= 'http://www.mynamespace.co.uk/namespace'>
      <nt = 'http://www.jcp.org/jcr/nt/1.0'>
      [namespace:document2] > nt:file

      • namespace:name (string) mandatory

      Remove the second set of namespace definitions, and all's well:

      <namespace= 'http://www.mynamespace.co.uk/namespace'>
      <nt = 'http://www.jcp.org/jcr/nt/1.0'>
      [namespace:document] > nt:file

      • namespace:name (string) mandatory

      [namespace:document2] > nt:file

      • namespace:name (string) mandatory

      Attachments

        1. CompactNodeTypeDefReader.patch
          1 kB
          Stefan Guggisberg

        Activity

          People

            stefan@jira Stefan Guggisberg
            dmosses David Moss
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: