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

Error after checking published during initial questions submission step

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Code Review Needed (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 6.3, 5.10
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      1
    • Documentation Status:
      Not Required

      Description

      When you don't check the published checkbox on the initial questions step, and after starting the describe step you return to the initial questions step and do check the Published checkbox, an error occurs when continuing to the describe step:

       

      Java stacktrace: java.lang.NullPointerException
      at org.dspace.content.DCDate.getYear(DCDate.java:298)
      at org.dspace.app.xmlui.aspect.submission.submit.DescribeStep.renderDateField(DescribeStep.java:624)
      at org.dspace.app.xmlui.aspect.submission.submit.DescribeStep.addBody(DescribeStep.java:233)
      

      This happens because value "today' is added as date issued when the item is not published before. Once you select that the item is published before, the issue date can be filled in during the describe step. But "today" can't be parsed into a date by the DCDate class, causing the nullpointer when rendering the issue date field on the describe step. 

      Suggested solution:
      Clear the dc.date.issued metadata field when published is selected in the initial questions submission step. 

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            philipatmire Philip Vissenaekens (Atmire)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: