-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 6.0.X EE
-
Fix Version/s: 6.0.X EE
-
Component/s: Legacy, Legacy > Enterprise Admin
-
Branch Version/s:6.0.x
-
Backported to Branch:Committed
-
Fix Priority:3
-
Git Pull Request:
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.