-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 6.2.10 EE GA1
-
Fix Version/s: 6.2.2 CE GA3 , 6.2.X EE, 7.0.0 M1
-
Branch Version/s:6.2.x
-
Backported to Branch:Committed
-
Story Points:9
-
Fix Priority:3
-
Git Pull Request:
Description
Accessing control panel URL on Weblogic throws IllegalStateException
Steps to reproduce/Testing done
Initial setup:
- Deploy Liferay onto Weblogic (no other plugins are needed)
- Set the following in portal-ext.properties to disable user personal pages
layout.user.private.layouts.auto.create=false
layout.user.private.layouts.enabled=false
layout.user.private.layouts.modifiable=false
layout.user.public.layouts.auto.create=false
layout.user.public.layouts.enabled=false
layout.user.public.layouts.modifiable=false
Role setup:
- Login as a portal administrator
- Navigate to Define Permissions for the User role
- Select Control Panel > General Permissions
- Under "General Permissions", give the "Go to Control Panel" permission
- Save changes
- Select Control Panel > Sites > Site
- Under "General Permissions", give the "Access in Control Panel" permission
- Save changes
User setup:
- Create a user 'reviewer'
Steps to reproduce:
- Sign in as the 'reviewer' user
- Navigate to the control panel
Results:
Expectation is that there are no errors. Actual behavior is that Liferay throws an exception.
The issue is that we're sending a redirect inside of a JSP, so it will continue processing the remaining HTML (in particular, the RuntimeTag just below it).
<% Map<String, List<Portlet>> categoriesMap = PortalUtil.getControlPanelCategoriesMap(request); if (categoriesMap.size() == 1) { for (String curCategory : categoriesMap.keySet()) { List<Portlet> categoryPortlets = categoriesMap.get(curCategory); if (categoryPortlets.size() == 1) { Portlet firstPortlet = categoryPortlets.get(0); PortletURL redirectURL = PortalUtil.getSiteAdministrationURL(request, themeDisplay, firstPortlet.getPortletId()); response.sendRedirect(redirectURL.toString()); } } } request.setAttribute(WebKeys.CONTROL_PANEL_CATEGORIES_MAP, categoriesMap); %>
Move logic to ServicePreAction, similar to work done in LPS-37846.
- is related to
-
LPE-12082 Accessing control panel URL on Weblogic throws IllegalStateException
-
- Closed
-