Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-16861

User/Group with no Cluster Role assigned but having View Permissions of "VIEW.USER" are shown as not editable in the List View

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • trunk
    • None
    • ambari-admin
    • None

    Description

      Steps to reproduce this issue:
      1. Create a few local users. I have created users "aaa", "bbb", "ccc" in my case.
      2. Create a view instance of your choice and assign one of the local users to this view instance. I have assigned user "aaa" to the a Jobs view instance.
      3. Go to Manage Ambari -> Roles -> List View
      4. You see the user "aaa" showing Cluster Role of "View User" and is not editable from this page. (attachment "view_user_for_user.tiff")

      I had recreated this issue using group also. Please find attachment "view_user_for_group.tiff" showing the List View for the case of group assigned with View User permission alone.

      Since View Permissions must not be mixed with the Cluster Permissions, the proposed fix should show Cluster Permission of "None" for users who have only "View User" permissions and no Cluster Permissions. This would allow the ambari user to edit the Cluster Permissions of the local users from the List View page.
      Note: A workaround found to edit such users' Cluster Permissions is to go to the Block View and assign some Cluster Permission. Then the List View shows the Cluster Permission and is editable.

      Attachments

        1. ambari_admin_test_cases_after_fix.tiff
          81 kB
          Keta Patel
        2. ambari_admin_test_cases_before_fix.tiff
          81 kB
          Keta Patel
        3. AMBARI-16861.patch
          6 kB
          Keta Patel
        4. view_user_for_group.tiff
          82 kB
          Keta Patel
        5. view_user_for_user.tiff
          80 kB
          Keta Patel

        Issue Links

          Activity

            People

              patelket@us.ibm.com Keta Patel
              patelket@us.ibm.com Keta Patel
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: