Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-36594

CauseOfInterruption.UserInterruption#print() may cause creation of previously deleted users

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: core
    • Labels:
    • Similar Issues:

      Description

      Just a minor bug, which may potentially happen due to the race condition if a task is being executed with SYSTEM authentication.

      • UserInterruption#getUser() uses User.get(String), which creates users on demand.
      • When we create CauseOfInterruption.UserInterruption, we expect it exists
      • BUT: the user may be deleted from parallel thread by the time we call UserInterruption#print, which invokes getUser()
      • In such case the recently deleted user will be recreated

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                oleg_nenashev Oleg Nenashev
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: