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

Incorrect redirection after delete of job in folder in view

      If you create a top-level list view v, to which you add a folder d, and add a job j inside the folder, then delete j, you are redirected to /view/v/ rather than /view/v/job/d/ as expected.

      This is because in AbstractProject.doDoDelete, req.findAncestorObject(View.class) is v, whose url is view/v/. In this case we would be better served by using the super method's logic (the branch where view == null), since parent.url is view/v/job/d/ which is what we want. The use of view.url is only appropriate in case that view's view group is the same as this job's parent.

          [JENKINS-17575] Incorrect redirection after delete of job in folder in view

          Jesse Glick created issue -
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Daniel Beck made changes -
          Labels Original: folders New: folders lts-candidate
          Oliver Gondža made changes -
          Labels Original: folders lts-candidate New: 1.509.4-fixed folders
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 148754 ] New: JNJira + In-Review [ 192856 ]

            Unassigned Unassigned
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: