Jackrabbit Content Repository
  1. Jackrabbit Content Repository
  2. JCR-2723

Exception when missing namespace in CND file should have clearer message

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1, 2.1.1
    • Fix Version/s: 2.2
    • Labels:
      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.

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

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Carl Hall
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development