Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-67181

In issue navigator, Due Date field will cause error if the value is when Daylight Savings Time is in place

    XMLWordPrintable

Details

    Description

      Summary

      If the Due Date field value is when Daylight Savings Time (DST) takes place (dependent on the Timezone of instance), issue navigator will meet with an error related to the Due Date field. This is because the field value (E.g.: 30th March) will be affected when the DST takes place.

      Error Message:

      An error occurred whilst rendering this message.  Please contact the administrators, and inform them of this bug. Details: ------- org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getHtml' in  class com.atlassian.jira.issue.fields.layout.column.ColumnLayoutItemImpl threw exception java.lang.NullPointerException at templates/jira/issue/table/macros.vm[line 117, column 34] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:507) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.directive.Foreach.performIteration(Foreach.java:393) at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:316) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212) at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)
      
      Caused by: java.lang.NullPointerException
          	at com.atlassian.jira.issue.DocumentIssueImpl.getDueDate(DocumentIssueImpl.java:245) [classes/:?]
          	at com.atlassian.jira.issue.fields.DueDateSystemField.getColumnViewHtml(DueDateSystemField.java:320) [classes/:?]
          
      

      Expected Results

      Displays all the issue like normal

      Actual Results

      Workaround

      1. Hide the column Due Date from the Issue Detail View page.
      2. Update the Due date to either one day earlier or later.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              imazuki Irfan Mazli Mazuki (Inactive)
              Votes:
              6 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated: