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

replayed build has broken diff link for non privileged users

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • workflow-cps-plugin
    • None
    • ci.jenkins.cio

      If a user without enough (unlear what they are) permissions clicks on the diff link from a replay action then the diff link results in a HTTP 404 and the build page is reloaded after traversing some other pages that are not existing

      steps to reproduce

      create a simple pipeline job (e.g. echo 'hello world')

      start a build of the pipeline

      go to the run with a user who has jenkins.administer permissions and replay the build making some changes (e.g. echo 'goodbye world')

      logout and login (or use an anonymous user if they have read access)

      click on the replayed build

      click on the diff link in the replay action

       

      expected results

      the diff is shown, or the whole (diff) text and link are not rendered to begin with if the current user lacks permissions to see the diff

      actual results

      The link is rendered, following the link results in the build page being reloaded after the diff was requested but ended in a 404

       

          [JENKINS-75108] replayed build has broken diff link for non privileged users

          Muhammad added a comment -

          Hello James, I can take a look at this issue, Can you just point me to the relevant projects that I should check?

          Muhammad added a comment - Hello James, I can take a look at this issue, Can you just point me to the relevant projects that I should check?

            Unassigned Unassigned
            teilo James Nord
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: