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

My views 'new view' links to not authorized top 'new view' editor

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: core
    • Labels:
    • Environment:
      Jenkins: 2.190.2/2.203 (pristine), Browser: Firefox/Chrome, OS: All
    • Similar Issues:

      Description

      When logged in as a user without View -> Create permissions,
      when on the "My Views" page, the "New View" link becomes visible.

      Since the user doesn't have permissions to create views on the top level (global views):

      • I would expect this link to point to "/user/[username]/my-views/newView" instead of "/newView".
      • Or for it to be hidden.

      Screenshots of a pristine Jenkins docker container with Legacy Authorization Mode:

        Attachments

          Issue Links

            Activity

            Hide
            markewaite Mark Waite added a comment -

            The newView URL seems to block a menu click from creating a new view on a folder. Steps I took included:

            1. Create a new folder and navigate into the folder
            2. Click the "New view" link on the left side of the page, confirm that it opens "/newView" instead of opening "/folder/newView"

            I've created views on folders before, but the same behavior is seen on Jenkins 2.235.5 and on Jenkins 2.249.1. I did not research any further into the past to determine when that behavior changed.

            The workaround is to append "/newView" to the end of the folder URL. Views will then be created in the folder.

            Show
            markewaite Mark Waite added a comment - The newView URL seems to block a menu click from creating a new view on a folder. Steps I took included: Create a new folder and navigate into the folder Click the "New view" link on the left side of the page, confirm that it opens "/newView" instead of opening "/folder/newView" I've created views on folders before, but the same behavior is seen on Jenkins 2.235.5 and on Jenkins 2.249.1. I did not research any further into the past to determine when that behavior changed. The workaround is to append "/newView" to the end of the folder URL. Views will then be created in the folder.

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              thorin Ricardo Santos
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: