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

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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core

      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

          [JENKINS-36594] CauseOfInterruption.UserInterruption#print() may cause creation of previously deleted users

          Oleg Nenashev created issue -
          Oleg Nenashev made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Daniel Beck made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 173315 ] New: JNJira + In-Review [ 199433 ]
          Oleg Nenashev made changes -
          Link New: This issue is related to JENKINS-38721 [ JENKINS-38721 ]
          Oliver Gondža made changes -
          Labels New: 2.19.4-fixed

            Unassigned Unassigned
            oleg_nenashev Oleg Nenashev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: