Forums de discussion

Problem with form on https

Dariusz Sawicki, modifié il y a 13 années.

Problem with form on https

Regular Member Publications: 165 Date d'inscription: 27/03/09 Publications récentes
Hi
I try to protect page in contol panel (exactly one page -> My Acount it's edit_user.jsp)
I have Apache behind Liferay and I create rewrite rul for this page.
Right now is secure by https this page and it's OK
But I have a problem with form on this page,
If a add only secure="true" in <portlet:actionURL> I get blank page after click save.
The part of code(edit_user.jsp) whit <portlet:actionURL> looks like below

submitForm(document.<portlet:namespace />fm, "<portlet:actionurl secure="true"><portlet:param name="struts_action" value="/enterprise_admin/edit_user" /></portlet:actionurl>");


My portal-ext.properties

web.server.http.port=80
web.server.https.port=443


After click save I have this error on console


10:11:03,365 ERROR [RequestProcessor:676] Invalid path was requested %2Fmy_account%2Fedit_user
10:11:03,365 ERROR [PortletRequestProcessor:363] User ID null
10:11:03,365 ERROR [PortletRequestProcessor:364] Current URL /en/group/control_panel/manage?p_p_id=2&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&doAsGroupId=18&refererPlid=10427&_2_struts_action=%252Fmy_account%252Fedit_user&_2_backURL=&_2_p_u_i_d=2
10:11:03,365 ERROR [PortletRequestProcessor:365] Referer null
10:11:03,365 ERROR [PortletRequestProcessor:366] Remote address 127.0.0.1
10:11:03,365 ERROR [PortletRequestProcessor:368] Invalid path was requested %2Fmy_account%2Fedit_user



Anybody knows how I can fixed it?
Thanks for help.
Regards
Dariusz