Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-6756

UI - Can not view User Policies for users with permissions granted on a specific parameter context

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.10.0
    • 1.10.0
    • Core UI
    • None

    Description

      If a parameter context access policy is overridden from the global access policy and users are assigned permission to it, when attempting to view that user's User Policies nothing happens (actually and error is thrown in the js console).

       

      To Reproduce:

      1. Create a new parameter context
      2. Edit it's access policies and override the "view the component" policy
      3. Assign a user to this policy
      4. Close this dialog
      5. Open the Users dialog from the hamburger menu
      6. Try to "View user Policies" (key icon in the actions column) of that user you just granted permission to view that parameter context.
      7. Notice nothing happens

      If you have the Dev Tools open, you will see an error:

       

      Uncaught TypeError: Cannot read property '0' of undefined
          at Object.getPolicyTypeListing (nf-common.js?1.10.0-SNAPSHOT:1718)
          at globalResourceParser (VM312 nf-users-table.js:542)
          at formatPolicy (VM312 nf-users-table.js:987)
          at policyDisplayNameFormatter (VM312 nf-users-table.js:629)
          at appendCellHtml (slick.grid.js:1746)
          at appendRowHtml (slick.grid.js:1712)
          at renderRows (slick.grid.js:2273)
          at SlickGrid.render (slick.grid.js:2345)
          at DataView.<anonymous> (VM312 nf-users-table.js:769)
          at Event.notify (slick.core.js:146)
      

      Attachments

        Issue Links

          Activity

            People

              mcgilman Matt Gilman
              rfellows Rob Fellows
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m