Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-15307

Configuring a board's Issue Details View to include custom fields with specific issue type contexts causes SafePluginPointAccess errors in the logs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • High
    • None
    • 7.3.0, 7.2.3, 7.2.7, 7.3.1, 7.3.6, 7.4.1, 7.4.4, 7.5.0, 7.6.2, 7.6.3, 7.6.4, 7.7.1, 7.8.0, 7.8.1, 7.3.4, 7.8.2, 7.6.6, 7.10.1, 7.10.2, 7.11.1, 7.12.1, 8.20.0
    • Board configuration
    • 7.02
    • 68
    • Severity 3 - Minor
    • 39
    • Hide
      Atlassian Update – 29 March 2024

      Dear Customers,

      Thank you for taking the time to file and comment on this issue. Feedback like yours helps us release valuable Jira features that solve problems for a greater customer base. To that end, we aim to keep our issues up-to-date so they accurately reflect current customer needs. Based on the impact, we’ve decided to move this issue to our short-term backlog.

      The workaround for this bug is in the issue description.

      Please continue watching this ticket for future updates and changes in the timeline that impact your work.

      Best regards

      Daniel Dudziak
      Senior Software Engineer

      Show
      Atlassian Update – 29 March 2024 Dear Customers, Thank you for taking the time to file and comment on this issue. Feedback like yours helps us release valuable Jira features that solve problems for a greater customer base. To that end, we aim to keep our issues up-to-date so they accurately reflect current customer needs. Based on the impact, we’ve decided to move this issue to our short-term backlog. The workaround for this bug is in the issue description. Please continue watching this ticket for future updates and changes in the timeline that impact your work. Best regards Daniel Dudziak Senior Software Engineer

    Description

      Summary

      If you configured your custom field context to only certain specific issue type, and you configure the Agile Board's 'Issue Details View' to call this custom field, c.atlassian.ozymandias.SafePluginPointAccess will be throwing error

      Steps to Reproduce

      1. Configure a new JIRA KANBAN board. With the filter set to one particular project
      2. Create a custom field called 'Test'
      3. Set the context for the field for 'Bug' issue type only
      4. Go to the Board's configuration > Issue Detail View and add this field
      5. Create a new issue on the board, with Task issue type
      6. On the board, click on the issue to trigger the right details issue view panel

      Expected Results

      No error is thrown in the logs

      Actual Results

      Below exception is thrown in the atlassian.log file:

      /rest/greenhopper/1.0/xboard/issue/details.json [c.atlassian.ozymandias.SafePluginPointAccess] Unable to run plugin code because of 'com.atlassian.jira.util.dbc.Assertions$NullArgumentException - config should not be null!'.
      com.atlassian.jira.util.dbc.Assertions$NullArgumentException: config should not be null!
      	at com.atlassian.jira.util.dbc.Assertions.notNull(Assertions.java:25)
      	at com.atlassian.jira.plugin.customfield.CustomFieldTypeModuleDescriptorImpl$2.call(CustomFieldTypeModuleDescriptorImpl.java:175)
      	at com.atlassian.jira.plugin.customfield.CustomFieldTypeModuleDescriptorImpl$2.call(CustomFieldTypeModuleDescriptorImpl.java:172)
      	at com.atlassian.ozymandias.SafePluginPointAccess.call(SafePluginPointAccess.java:187)
      	at com.atlassian.jira.plugin.customfield.CustomFieldTypeModuleDescriptorImpl.getSupplierValueOrHtmlErrorMessage(CustomFieldTypeModuleDescriptorImpl.java:372)
      	at com.atlassian.jira.plugin.customfield.CustomFieldTypeModuleDescriptorImpl.getEditHtml(CustomFieldTypeModuleDescriptorImpl.java:172)
      	at com.atlassian.jira.issue.fields.ImmutableCustomField.getEditHtml(ImmutableCustomField.java:889)
      	at com.atlassian.greenhopper.web.rapid.view.detailview.DetailViewInlineEditableFieldFactory.getFieldHtmlBean(DetailViewInlineEditableFieldFactory.java:263)
      	at com.atlassian.greenhopper.web.rapid.view.detailview.DetailViewInlineEditableFieldFactory.lambda$getDetailViewEditableFields$54(DetailViewInlineEditableFieldFactory.java:162)
      	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
      

      Notes

      This is not impacting any functionality. Just on logging

       

      Workaround

      Jira Administrators can hide logging on the package by increasing logging level to ERROR.

      You can achieve this by adding these lines into log4j.properties:

      log4j.logger.com.atlassian.ozymandias  = ERROR, console, filelog
      log4j.additivity.com.atlassian.ozymandias = false
      

      For changes to make an effect, Jira restart is required.

      The file log4j.properties is located at JIRA_INSTALL_DIR/atlassian-jira/WEB-INF/classes (as of Jira 7.12.x)

      Mind, this would make the log lines disappear, yet would not address the root cause.
      The actual case had to be addressed by the plug-in vendor.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              amasut Azfar Masut (Inactive)
              Votes:
              214 Vote for this issue
              Watchers:
              161 Start watching this issue

              Dates

                Created:
                Updated: