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

Exception when missing namespace in CND file should have clearer message

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1, 2.1.1
    • 2.2
    • None

    Description

      Using the attached CND file, when calling CndImporter.registerNodeTypes(..) the following message is in the returned exception:

      "Unable to parse CND Input: Error setting name of sling:resourceType to sling:resourceType (bundle://23.0:0/SLING-INF/nodetypes/types.cnd, line 24)"

      The issue with line 24 is that the "sling" namespace has not been included. The message should state that a namespace is missing and what prefix is not understood.

      Attachments

        1. types-bad.cnd
          0.7 kB
          Carl Franklin Hall
        2. types-good.cnd
          0.7 kB
          Carl Franklin Hall

        Activity

          People

            Unassigned Unassigned
            thecarlhall Carl Franklin Hall
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: