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

Folder gets copied based on current folder instead of empty

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None

      Summary
      The Copy-From input field available via "New Item" interprets an empty field as the root of the current folder it's located in, and attempts to copy everything from there.

      Steps to Reproduce
      1. Open the "New Item" dialog
      2. Enter an arbitrary name
      3. Select the type "Folder"
      4. Attempt to enter a template (random folder) for the Copy-From input field.
      5. Delete the entered text, leaving the field empty.

      Expected Results
      The newly created folder should be empty.

      Actual Results
      The (seemingly) empty field is interpreted as the root of the current folder it's located in, and attempts to copy everything from there. Only if the Copy-From is left untouched, it behaves as expected.

      The copy is recursive and even includes any empty version of the folder the user wants to create (in this moment).

      See also the attached before and after screenshot of the duplication.

      In our case, this caused an unexpected recursive folder duplication that was big enough to bring down the whole Jenkins instance (due to the copy/rescan of multiple 100s branches / projects).

            Unassigned Unassigned
            degelma Marian Degel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: