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

Controlled vocabularies not shown when editing an item

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Accepted / Claimed (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.5.0
    • Fix Version/s: None
    • Component/s: JSPUI
    • Labels:
      None
    • Environment:
      Linux
    • Attachments:
      0
    • Comments:
      1

      Description

      When creating or editing an item, the controlled vocabulary for a field is not shown in the popup window.
      The error written to the log is a NullPointerException in the method transformDocumentAsString of XMLUtil class (line 166). Also the error contains the next message: "vocabulary2html.xsl:1:1: Content is not allowed in prolog".
      This problem only happens when the path to the xsl file contains the pound symbol (#), because a StreamSource cannot be instantiated passing a string as a parameter containing this character.
      I find a workaround to fix this problem: instantiate a FileInputStream with the path (String) of the xsl file and then create the StreamSource passing that instance.
      Hope this helps.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:

                Time Tracking

                Estimated:
                Original Estimate - 1 week, 1 day
                1w 1d
                Remaining:
                Remaining Estimate - 1 week, 1 day
                1w 1d
                Logged:
                Time Spent - Not Specified
                Not Specified