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

Entire containing folder is cloned when adding item and copy from field first populated, then cleared

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • core
    • None
    • Jenkins 2.462.3, not sure about other details, but can provide this upon request.

      Steps to reproduce:

      1. Select 'Add item' in folder where there are already items present
      2. Name the item
      3. Type something into the 'copy from' input box, select some item
      4. Clear the input box so that it is in its initial state and says 'Type to autocomplete again'
      5. Click OK

      Jenkins then surprisingly clones the entire containing folder and starts running every job in it, see attached screen recording.

      I inadvertently did this in a folder with a large amount of projects, and it effectively created a denial of service situation for 30 minutes and caused building and deploying of artifacts that were not supposed to be built, quite disconcerting and disruptive.

       

          [JENKINS-74867] Entire containing folder is cloned when adding item and copy from field first populated, then cleared

          Mark Waite added a comment -

          Thanks for reporting the issue. I can duplicate the issue by following the steps that you listed. I've attached the list of plugins I was using as plugins.txt. One workaround is to select a job type from the "New item" page after clearing the "Copy from" field. Another workaround is to not add anything to the "Copy from" field.

          Mark Waite added a comment - Thanks for reporting the issue. I can duplicate the issue by following the steps that you listed. I've attached the list of plugins I was using as plugins.txt . One workaround is to select a job type from the "New item" page after clearing the "Copy from" field. Another workaround is to not add anything to the "Copy from" field.

          Jan added a comment -

          Thanks for the reply and for fixing my summary typo, not enough coffee

          Yes, I saw later that the job type got cleared when populating 'copy from', and that the problem is probably that it isn't supposed to be allowed to submit when both job type and 'copy from' are unset? The OK button should probably go back to disabled when 'copy from' is cleared, right? At least we're then back to the page's initial state except for the fact that the OK button is enabled.

          Jan added a comment - Thanks for the reply and for fixing my summary typo, not enough coffee Yes, I saw later that the job type got cleared when populating 'copy from', and that the problem is probably that it isn't supposed to be allowed to submit when both job type and 'copy from' are unset? The OK button should probably go back to disabled when 'copy from' is cleared, right? At least we're then back to the page's initial state except for the fact that the OK button is enabled.

            lmh Minghao
            jwegger Jan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: