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

Nested views not showing up with just read perms for View

      Jenkins 1.459 + Nested View Plugin 1.8 + Role-based Authorization Strategy 1.1.2

      User has read permissions for "View" but Jenkins main page is missing Nested views (even if they have sub views with jobs).
      Adding "configure" perms for "View" results in Nested views showing up correctly.

      It looks like it's connected with:
      "Added the View.READ permission to control visibility of views, and updated the default implementation to hide empty views. (issue 3681)"

          [JENKINS-13429] Nested views not showing up with just read perms for View

          M S added a comment -

          Taking into consideration, that Sectioned View plugin will laso have the same problem if we use it without any job inside (for example using only text lists inside) I think that "hide empty views" implementation is too naive, looking only at jobs directly under view.

          M S added a comment - Taking into consideration, that Sectioned View plugin will laso have the same problem if we use it without any job inside (for example using only text lists inside) I think that "hide empty views" implementation is too naive, looking only at jobs directly under view.

          Markus added a comment -

          Seeing the same with matrix based security.
          Jenkins 1.460
          Nested View Plugin 1.8.
          Active Directory plugin 1.23

          Markus added a comment - Seeing the same with matrix based security. Jenkins 1.460 Nested View Plugin 1.8. Active Directory plugin 1.23

          Jose Sa added a comment - - edited

          Upgraded from 1.456 (which had nested views of nested views showing ok) to 1.462 and now it only shows the default "All" view and no nested views.
          Had to revert and will have to stick with 1.458 until nested tabs can be visible again with "anonymous view.read" permission.

          Jose Sa added a comment - - edited Upgraded from 1.456 (which had nested views of nested views showing ok) to 1.462 and now it only shows the default "All" view and no nested views. Had to revert and will have to stick with 1.458 until nested tabs can be visible again with "anonymous view.read" permission.

          Pull request created for this issue
          https://github.com/jenkinsci/jenkins/pull/464

          Vincent Latombe added a comment - Pull request created for this issue https://github.com/jenkinsci/jenkins/pull/464

          Brenna Flood added a comment -

          Upgraded from 1.458 to 1.463 yesterday and started experiencing this issue. It's fairly important in our company implementation that anonymous users be able to continue to browse through nested views without requiring authentication; for security purposes, the workaround of giving configure perms for View for anonymous is not viable.

          Brenna Flood added a comment - Upgraded from 1.458 to 1.463 yesterday and started experiencing this issue. It's fairly important in our company implementation that anonymous users be able to continue to browse through nested views without requiring authentication; for security purposes, the workaround of giving configure perms for View for anonymous is not viable.

          Badly in need of this correction. The workaround to give 'Configure' permission for the same seems to be dangerous.

          Renjith Pillai added a comment - Badly in need of this correction. The workaround to give 'Configure' permission for the same seems to be dangerous.

          Code changed in jenkins
          User: Vincent Latombe
          Path:
          changelog.html
          core/src/main/java/hudson/security/AuthorizationStrategy.java
          http://jenkins-ci.org/commit/jenkins/d1b2ba7e4988d26fbb815b8912efb16273c407d4
          Log:
          [FIXED JENKINS-13429]
          Backward compatibility is preventing the View.READ permission to apply
          correctly. It actually overrides the View.READ instead of complementing
          it.

          This change only applies default READ right if the View.READ is not
          available, and the user has View.CONFIGURE + the view is not empty.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vincent Latombe Path: changelog.html core/src/main/java/hudson/security/AuthorizationStrategy.java http://jenkins-ci.org/commit/jenkins/d1b2ba7e4988d26fbb815b8912efb16273c407d4 Log: [FIXED JENKINS-13429] Backward compatibility is preventing the View.READ permission to apply correctly. It actually overrides the View.READ instead of complementing it. This change only applies default READ right if the View.READ is not available, and the user has View.CONFIGURE + the view is not empty.

          So which release contains this correction? The changelogs doesn't seem to indicate this.

          Renjith Pillai added a comment - So which release contains this correction? The changelogs doesn't seem to indicate this.

          It will be in 1.467

          Vincent Latombe added a comment - It will be in 1.467

          dogfood added a comment -

          Integrated in jenkins_ui-changes_branch #30
          [FIXED JENKINS-13429] (Revision d1b2ba7e4988d26fbb815b8912efb16273c407d4)

          Result = SUCCESS
          Kohsuke Kawaguchi : d1b2ba7e4988d26fbb815b8912efb16273c407d4
          Files :

          • core/src/main/java/hudson/security/AuthorizationStrategy.java
          • changelog.html

          dogfood added a comment - Integrated in jenkins_ui-changes_branch #30 [FIXED JENKINS-13429] (Revision d1b2ba7e4988d26fbb815b8912efb16273c407d4) Result = SUCCESS Kohsuke Kawaguchi : d1b2ba7e4988d26fbb815b8912efb16273c407d4 Files : core/src/main/java/hudson/security/AuthorizationStrategy.java changelog.html

            kohsuke Kohsuke Kawaguchi
            carno M S
            Votes:
            11 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: