Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-1065

Required "id" attribute for every node in controlled vocabularies

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.2
    • Fix Version/s: None
    • Component/s: DSpace API
    • Labels:
      None
    • Attachments:
      1
    • Comments:
      3

      Description

      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();

        Attachments

          Activity

            People

            Assignee:
            mwood Mark H. Wood
            Reporter:
            juan.garcia Juan GarcĂ­a
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: