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

The Project/User/Security Level Cache can be over eager and grant incorrect Security Levels to users.

    XMLWordPrintable

Details

    Description

      The IssueSecurityLevelManager finds the list of Security Levels available to a user for a given Project or Issue.
      The problem is that we cache the results against the project even if it was a query for an issue, and also we use the List cached against the project even if it is an issue query.

      This leads to incorrect results when the Issue Level Security scheme includes permissions like "reporter" or "assignee".

      Please see TestPromptUserForSecurityLevelOnMove.testMoveProject_Issue_SecurityLevelNotAvailableToUser() for a func test that was failing because of this bug.
      Note, however, that this test was not written specifically or this particular issue, so it may randomly pass.

      Bug exists in IssueLevelSecurities.getUsersSecurityLevels()

      Attachments

        Issue Links

          Activity

            People

              ohernandez@atlassian.com Oswaldo Hernandez (Inactive)
              mlassau Mark Lassau (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 40h
                  40h
                  Remaining:
                  Time Spent - 19h Remaining Estimate - 21h
                  21h
                  Logged:
                  Time Spent - 19h Remaining Estimate - 21h
                  19h