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

NullPointerException in PermissionManager when null entity is passed

    XMLWordPrintable

Details

    Description

      In theory null should not be passed as an entity (issue or project) to the hasPermission methods. However, some bad code sometimes does this.

      in this case, instead of allowing the code in hasPermission method to throw the real NullPointerException with a proper error message, the NullPointerException is dropped as another NullPointerException is generated in the finally block which is meant to generate method call timing statistics.

      Need to ensure that line 126 in AbstractPermissionManager caters for null projectOrIssue.

      Attachments

        Issue Links

          Activity

            People

              mlassau Mark Lassau (Inactive)
              anton@atlassian.com AntonA
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h