Foros de discusión

[Resolved] Redirect loop when deactivating users from a group

Eric D H, modificado hace 14 años.

[Resolved] Redirect loop when deactivating users from a group

Junior Member Mensajes: 30 Fecha de incorporación: 28/09/09 Mensajes recientes
I used to be able to delete user groups, but now I can't. I think this problem popped up when I tried importing a group as a user. Even if I make a totally new group, I still can't delete it. The delete button doesn't work, and if I go to action on the right hand side, that delete doesn't work either. Also, if I try to deactivate users from the group, I get a blank page. Any ideas?

Also, I've deleted some groups from the database manually. Maybe that messed something up?

Edit: When I try to deactivate a user from a group, I get the "Redirect Loop" error in Firefox. I'm not really sure what's going on.
Eric D H, modificado hace 14 años.

RE: Can't delete user groups

Junior Member Mensajes: 30 Fecha de incorporación: 28/09/09 Mensajes recientes
The problem with not being able to delete user groups came from this in my properties file:

layout.user.private.layouts.enabled=false

Once I took that out, I could delete user groups. However, when I go to the group and try to deactivate a user, I get the following error:

Redirect Loop
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.


This is the error I get from IE:
Line: 16
Char: 2
Error: Invalid procedure call or argument
Code:0
URL: http://********.*********.com:8080/group/control_panel/manage?p_p_id=127&p_p_lifecycle=1&p_p_state=maximized&p_p_mode=view&doAsGroupId=10808&refererPlid=10875&_127_struts_action=%2Fenterprise_admin_user_groups%2Fedit_user

This is line 16:
<body onload="javascript: location.replace('http://abcdefg01t.testsite.com:8080abcdefg01t.testsite.com:8080')">

Anyone know why this is happening?
Eric D H, modificado hace 14 años.

RE: Redirect loop when deactivating users from a group

Junior Member Mensajes: 30 Fecha de incorporación: 28/09/09 Mensajes recientes
From catalina.out:

14:57:28,224 INFO [PluginPackageUtil:1153] Reloading repositories
14:57:28,238 ERROR [PluginPackageUtil:1171] Unable to load repository http://plugins.liferay.com/official com.liferay.portal.plugin.PluginPackageException: Unable to communicate with repository http://plugins.liferay.com/official
14:57:28,239 ERROR [PluginPackageUtil:1171] Unable to load repository http://plugins.liferay.com/community com.liferay.portal.plugin.PluginPackageException: Unable to communicate with repository http://plugins.liferay.com/community
14:57:28,240 WARN [PluginPackageUtil:318] Unable to communicate with repository http://plugins.liferay.com/official
14:57:28,241 WARN [PluginPackageUtil:318] Unable to communicate with repository http://plugins.liferay.com/community


and...

15:01:20,875 ERROR [RequestProcessor:676] Invalid path was requested /enterprise_admin_user_groups/edit_user
15:01:20,876 ERROR [PortletRequestProcessor:374] User ID 10435
15:01:20,876 ERROR [PortletRequestProcessor:375] Current URL /c/portal/layout?p_l_id=10132&p_p_id=127&p_p_lifecycle=1&p_p_state=maximized&p_p_mode=view&doAsGroupId=10808&refererPlid=10875&_127_struts_action=%2Fenterprise_admin_user_groups%2Fedit_user&_127_cmd=deactivate&_127_redirect=http%3A%2F%2Fabcdefg01t.testsite.com%3A8080%2Fc%2Fportal%2Flayout%3Fp_l_id%3D10132%26p_p_id%3D127%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26doAsGroupId%3D10808%26refererPlid%3D10875%26_127_struts_action%3D%252Fenterprise_admin_user_groups%252Fview%26_127_tabs1%3Dusers%26_127_tabs2%3D%26_127_tabs3%3D%26_127_viewUsersRedirect%3D%252Fc%252Fportal%252Flayout%253Fp_l_id%253D10132%2526p_p_id%253D127%2526p_p_lifecycle%253D0%2526p_p_state%253Dmaximized%2526p_p_mode%253Dview%2526doAsGroupId%253D10808%2526refererPlid%253D10875%2526_127_struts_action%253D%25252Fenterprise_admin_user_groups%25252Fview%2526_127_tabs1%253Duser-groups%2526_127_tabs2%253D%2526_127_tabs3%253D%2526_127_cur%253D1%2526_127_delta%253D20%2526_127_keywords%253D%2526_127_advancedSearch%253Dfalse%2526_127_andOperator%253Dtrue%2526_127_name%253D%2526_127_description%253D%2526_127_orderByCol%253Dname%2526_127_orderByType%253Ddesc%26_127_cur%3D1%26_127_delta%3D20%26_127_keywords%3D%26_127_advancedSearch%3Dfalse%26_127_andOperator%3Dtrue%26_127_firstName%3D%26_127_middleName%3D%26_127_lastName%3D%26_127_screenName%3D%26_127_emailAddress%3D%26_127_active%3Dtrue%26_127_organizationId%3D0%26_127_roleId%3D0%26_127_userGroupId%3D15743%26_127_orderByCol%3Dscreen-name%26_127_orderByType%3Ddesc&_127_deleteUserIds=15925
15:01:20,877 ERROR [PortletRequestProcessor:376] Referer http://abcdefg01t.testsite.com:8080/c/portal/layout?p_l_id=10132&p_p_id=127&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&doAsGroupId=10808&refererPlid=10875&_127_struts_action=%2Fenterprise_admin_user_groups%2Fview&_127_tabs1=users&_127_viewUsersRedirect=%2Fc%2Fportal%2Flayout%3Fp_l_id%3D10132%26p_p_id%3D127%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26doAsGroupId%3D10808%26refererPlid%3D10875%26_127_struts_action%3D%252Fenterprise_admin_user_groups%252Fview%26_127_tabs1%3Duser-groups%26_127_tabs2%3D%26_127_tabs3%3D%26_127_cur%3D1%26_127_delta%3D20%26_127_keywords%3D%26_127_advancedSearch%3Dfalse%26_127_andOperator%3Dtrue%26_127_name%3D%26_127_description%3D%26_127_orderByCol%3Dname%26_127_orderByType%3Ddesc&_127_userGroupId=15743
15:01:20,877 ERROR [PortletRequestProcessor:377] Remote address 172.24.12.16
15:01:20,878 ERROR [PortletRequestProcessor:379] Invalid path was requested /enterprise_admin_user_groups/edit_user
15:01:20,912 ERROR [RequestProcessor:676] Invalid path was requested /enterprise_admin_user_groups/edit_user
15:01:20,913 ERROR [PortletRequestProcessor:374] User ID null
15:01:20,914 ERROR [PortletRequestProcessor:375] Current URL /c/portal/layout?p_l_id=10132&p_p_id=127&p_p_lifecycle=1&p_p_state=maximized&p_p_mode=view&doAsGroupId=10808&refererPlid=10875&_127_struts_action=%2Fenterprise_admin_user_groups%2Fedit_user&_127_cmd=deactivate&_127_redirect=http%3A%2F%2Fabcdefg01t.testsite.com%3A8080%2Fc%2Fportal%2Flayout%3Fp_l_id%3D10132%26p_p_id%3D127%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26doAsGroupId%3D10808%26refererPlid%3D10875%26_127_struts_action%3D%252Fenterprise_admin_user_groups%252Fview%26_127_tabs1%3Dusers%26_127_tabs2%3D%26_127_tabs3%3D%26_127_viewUsersRedirect%3D%252Fc%252Fportal%252Flayout%253Fp_l_id%253D10132%2526p_p_id%253D127%2526p_p_lifecycle%253D0%2526p_p_state%253Dmaximized%2526p_p_mode%253Dview%2526doAsGroupId%253D10808%2526refererPlid%253D10875%2526_127_struts_action%253D%25252Fenterprise_admin_user_groups%25252Fview%2526_127_tabs1%253Duser-groups%2526_127_tabs2%253D%2526_127_tabs3%253D%2526_127_cur%253D1%2526_127_delta%253D20%2526_127_keywords%253D%2526_127_advancedSearch%253Dfalse%2526_127_andOperator%253Dtrue%2526_127_name%253D%2526_127_description%253D%2526_127_orderByCol%253Dname%2526_127_orderByType%253Ddesc%26_127_cur%3D1%26_127_delta%3D20%26_127_keywords%3D%26_127_advancedSearch%3Dfalse%26_127_andOperator%3Dtrue%26_127_firstName%3D%26_127_middleName%3D%26_127_lastName%3D%26_127_screenName%3D%26_127_emailAddress%3D%26_127_active%3Dtrue%26_127_organizationId%3D0%26_127_roleId%3D0%26_127_userGroupId%3D15743%26_127_orderByCol%3Dscreen-name%26_127_orderByType%3Ddesc&_127_deleteUserIds=15925
15:01:20,915 ERROR [PortletRequestProcessor:376] Referer http://abcdefg01t.testsite.com:8080/c/portal/layout?p_l_id=10132&p_p_id=127&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&doAsGroupId=10808&refererPlid=10875&_127_struts_action=%2Fenterprise_admin_user_groups%2Fview&_127_tabs1=users&_127_viewUsersRedirect=%2Fc%2Fportal%2Flayout%3Fp_l_id%3D10132%26p_p_id%3D127%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26doAsGroupId%3D10808%26refererPlid%3D10875%26_127_struts_action%3D%252Fenterprise_admin_user_groups%252Fview%26_127_tabs1%3Duser-groups%26_127_tabs2%3D%26_127_tabs3%3D%26_127_cur%3D1%26_127_delta%3D20%26_127_keywords%3D%26_127_advancedSearch%3Dfalse%26_127_andOperator%3Dtrue%26_127_name%3D%26_127_description%3D%26_127_orderByCol%3Dname%26_127_orderByType%3Ddesc&_127_userGroupId=15743
15:01:20,916 ERROR [PortletRequestProcessor:377] Remote address 172.24.12.16
15:01:20,917 ERROR [PortletRequestProcessor:379] Invalid path was requested /enterprise_admin_user_groups/edit_user
Eric D H, modificado hace 14 años.

RE: Redirect loop when deactivating users from a group

Junior Member Mensajes: 30 Fecha de incorporación: 28/09/09 Mensajes recientes
I have resolved the issue. I added the following to my struts-config.xml file.

<action path="/enterprise_admin_user_groups/edit_user" type="com.liferay.portlet.enterpriseadmin.action.EditUserAction">
<forward name="portlet.enterprise_admin.edit_user" path="portlet.enterprise_admin.edit_user" />
<forward name="portlet.enterprise_admin.error" path="portlet.enterprise_admin.error" />
</action>

Now it knows what to do when the path /enterprise_admin_user_groups/edit_user is requested.