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

Blueocean input step does not respect "discover" permission

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: blueocean-plugin
    • Labels:
      None
    • Environment:
      Ubuntu, Jenkins 2.138.3 core and libraries
    • Similar Issues:

      Description

      The "Discover" role is to allow the users to know that a resource exists in Jenkins. If the Anonymous User doesn't have "Read" role and have "Discover", they are asked to login.

      During a pipeline it is specially useful during a input step. If the Anonymous user has the "Read" role, the step fail after the Ok button is clicked. If it doesn't have, he gets a 404 error and thinks there is an error.

      The "Discover permission" does not work while in Blue Ocean. If the Anonymous User has the role Discover but not the Read role, both the main job page and the input page give a 404 Not Found error. Here are the failing urls of the job "teste-aprovador":

      http://vrt1071:8280/blue/organizations/jenkins/teste-aprovador/activity/

      http://vrt1071:8280/blue/organizations/jenkins/teste-aprovador/detail/teste-aprovador/103/pipeline/

      If I go to the old interface and go to the "Paused for input" build link:

      http://vrt1071:8280/job/teste-aprovador/104/input/

      Jenkins correctly asks me to login so I can see the page.

      Here is the sample configuration:

        Attachments

          Issue Links

            Activity

            Hide
            timothy_bell Timothy Bell added a comment -

            I seem to be facing the same thing here: https://issues.jenkins.io/browse/JENKINS-65589. I thought adding the DISCOVER permission would fix it, but it doesn't seem that Blueocean respects it!

            Show
            timothy_bell Timothy Bell added a comment - I seem to be facing the same thing here: https://issues.jenkins.io/browse/JENKINS-65589 . I thought adding the DISCOVER permission would fix it, but it doesn't seem that Blueocean respects it!

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              pauloneves Paulo Eduardo Neves
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: