Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-65812

Daylight Saving Due Date Causing Issue Navigator to experience difficulty showing Due column and also causing errors to JSON export module

    XMLWordPrintable

Details

    • Bug
    • Resolution: Tracked Elsewhere
    • Medium
    • None

    Description

      Problem Description

      This bug is closely related to https://jira.atlassian.com/browse/JRA-42919 and it seems to be affecting other components like the JSON Export module and also the Issue Navigator.

      Steps to Replicate

      Setting the timezone of your instance to -Duser.timezone=Asia/Beirut. Then add the due date field to your issue. Create an issue due date set at 2015-03-29.

      Issue Navigator

      1. Add the due column to the Issue Navigator.
      2. Attempt to search for the issues with due date set on 2015-03-29.

      JSON Export

      1. Enable the JSON module in JIM (JIRA Import Manager).
      2. Attempt to export the results from the Issue Navigator to JSON.

      Expected Results

      Issue Navigator
      Able to view the results without any error.

      JSON Export
      Able to export without issues.

      Current Results

      Issue Navigator

      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)
      

      JSON Export

      java.lang.NullPointerException
      	at com.atlassian.jira.issue.DocumentIssueImpl.getDueDate(DocumentIssueImpl.java:291)
      	at com.atlassian.jira.plugins.importer.views.IssueJsonView.convertIssueToExternalIssue(IssueJsonView.java:245)
      	at com.atlassian.jira.plugins.importer.views.SearchRequestJsonView$1.collect(SearchRequestJsonView.java:101)
      	at com.atlassian.jira.issue.statistics.util.DocumentHitCollector.collect(DocumentHitCollector.java:34)
      	at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchAndSort(LuceneSearchProvider.java:482)
      	at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchAndSort(LuceneSearchProvider.java:456)
      	at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchAndSort(LuceneSearchProvider.java:191)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      

      Workaround

      Issue Navigator

      1. Hide the Due Date field and then re-index the instance. The Issue Navigator will now display the results without errors.

      JSON Export

      1. No known workaround for now as the exporter gets all the value of the JIRA ticket regardless of whether the Due Date field is hidden or shown.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vchin Vincent Chin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: