Exception when missing namespace in CND file should have clearer message
------------------------------------------------------------------------

                 Key: JCR-2723
                 URL: https://issues.apache.org/jira/browse/JCR-2723
             Project: Jackrabbit Content Repository
          Issue Type: Improvement
          Components: jackrabbit-jcr-commons, nodetype
    Affects Versions: 2.1.1, 2.1.0
            Reporter: Carl Hall
         Attachments: types-bad.cnd, types-good.cnd

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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to