Required "id" attribute for every node in controlled vocabularies
-----------------------------------------------------------------
Key: DS-1065
URL: https://jira.duraspace.org/browse/DS-1065
Project: DSpace
Issue Type: Bug
Components: DSpace API
Affects Versions: 1.7.2
Reporter: Juan GarcĂa
Priority: Major
When enabling, in dspace.cfg, the plugin
org.dspace.content.authority.DSpaceControlledVocabulary for
plugin.selfnamed.org.dspace.content.authority.ChoiceAuthority the method
getMatches throws a NullPointerException if the xml file (the controlled
vocabulary file) contains nodes without the "id" attribute, despite that the
xml schema (controlledvocabulary.xsd) specifies this attribute as optional.
The line that causes the exception is the following:
authorities[i] = node.getAttributes().getNamedItem("id").getNodeValue();
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.duraspace.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
RSA® Conference 2012
Save $700 by Nov 18
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel