Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-32588

Active field is not hidden in Advanced User Search

    Details

      Description

      There are some usages of Advanced User Search that do no allow searching for inactive users, but the Active field value "No" is overridden in portal-impl/src/com/liferay/portlet/enterpriseadmin/search/UserSearch.java regardless of the choice of the user:

      UserSearch.java
      if ((!portletName.equals(PortletKeys.ENTERPRISE_ADMIN)) &&
          (!portletName.equals(PortletKeys.ENTERPRISE_ADMIN_USERS)) &&
          (!portletName.equals(PortletKeys.ENTERPRISE_ADMIN_ORGANIZATIONS))) {
      
          displayTerms.setActive(true);
          searchTerms.setActive(true);
      }
      

      Usages of User Search functionality:

      JSP file Access on UI PortletKey BEFORE - Active field shown? BEFORE - filter behavior EXPECTED - Active field shown? EXPECTED - filter behavior
      portal-web/docroot/html/portlet/enterprise_admin/edit_user_group_assignments.jsp Control Panel -> User Groups -> Actions -> Assign members ENTERPRISE_ADMIN_USER_GROUPS = "127" Yes active only No active only
      portal-web/docroot/html/portlet/enterprise_admin/view_users.jsp Control Panel -> Users ENTERPRISE_ADMIN_USERS = "125" Yes active/inactive Yes active/inactive
      portal-web/docroot/html/portlet/enterprise_admin/edit_organization_assignments_users.jsp Control Panel -> Organizations -> Actions -> Assign members ENTERPRISE_ADMIN_ORGANIZATIONS = "126" Yes active/inactive Yes active/inactive
      portal-web/docroot/html/portlet/communities/edit_team_assignments_users.jsp Control Panel -> Organizations -> Actions -> Manage Teams -> Actions -> Assign members ENTERPRISE_ADMIN_ORGANIZATIONS = "126" Yes active/inactive Yes active/inactive
      portal-web/docroot/html/portlet/enterprise_admin/edit_role_assignments_users.jsp Control Panel -> Roles -> Actions -> Assign members ENTERPRISE_ADMIN_ROLES = "128" Yes active only No active only
      portal-web/docroot/html/portlet/communities/edit_user_roles_users.jsp Control Panel -> Communities -> Actions -> Assign User Roles -> Select a role ENTERPRISE_ADMIN_COMMUNITIES = "134" No active only No active only
      portal-web/docroot/html/portlet/communities/edit_community_assignments_users.jsp Control Panel -> Communities -> Actions -> Assign members ENTERPRISE_ADMIN_COMMUNITIES = "134" No active only No active only
      portal-web/docroot/html/portlet/enterprise_admin/edit_password_policy_assignments.jsp Control Panel -> Password Policies -> Actions -> Assign members ENTERPRISE_ADMIN_PASSWORD_POLICIES = "129" Yes active only No active only
      portal-web/docroot/html/portlet/portlet_configuration/edit_permissions_algorithm_1_to_4_users.jsp Go to any portlet's configuration (e.g. Hello World portlet's) PORTLET_CONFIGURATION = "86" No active only No active only

      In order to test the edit_permissions_algorithm_1_to_4_users.jsp you need to do the following:
      Add to portal-ext.properties: permissions.user.check.algorithm=4
      The active and deactivated test user should be part of the community that the portlet is on.

        Attachments

          Activity

            People

            • Assignee:
              pani.gui Pani Gui (Inactive)
              Reporter:
              akos.thurzo Akos Thurzo (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 9 weeks, 5 days ago

                Packages

                Version Package
                6.0.X EE