Fórum

Liferay 7/mod_jk and tilde(~) issue.

Ahmedin Hassen, modificado 7 Anos atrás.

Liferay 7/mod_jk and tilde(~) issue.

New Member Postagens: 5 Data de Entrada: 09/12/16 Postagens Recentes
Hi
When configuring liferay and httpd/mod_jk as front end we are encountering an issue accessing "Configure pages" tabs. I am getting the following error:
"Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, admin@mycompany.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log"

If I access liferay directly(by passing the httpd/mod_jk) there is no issue...It works as expected.

I am guessing that the mod_jk does not like the tilde(~) in the url generated by liferay. Can any one help how to solve this?

This is the problematic url which is being generated while clicking on the Configure pages tab.
https://ip:80/group/guest/~/control_panel/manage?p_p_id=com_liferay_layout_admin_web_portlet_GroupPagesPortlet&p_p_lifecycle=0&p_p_state=maximized&_com_liferay_layout_admin_web_portlet_GroupPagesPortlet_backURL=%2F&_com_liferay_layout_admin_web_portlet_GroupPagesPortlet_groupId=20147&p_r_p___selPlid=20150&p_r_p___privateLayout=false&p_p_auth=4dW95XyH

Any url that has tilde(~) character in it has a problem...otherwise no issue and all the link works as expected.

Please help how to solve this...May be how to configure liferay not to generate this bad character in the url?

Thank you!
thumbnail
David H Nebinger, modificado 7 Anos atrás.

RE: Liferay 7/mod_jk and tilde(~) issue.

Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
Ahmedin Hassen:
I am guessing that the mod_jk does not like the tilde(~) in the url generated by liferay. Can any one help how to solve this?


I am guessing it is your apache config in general and not necessarily mod_jk config alone.

The only thing I can suggest is to spin out to the apache site and start reading doco. Heck, they might even have a forum too.
Ahmedin Hassen, modificado 7 Anos atrás.

RE: Liferay 7/mod_jk and tilde(~) issue.

New Member Postagens: 5 Data de Entrada: 09/12/16 Postagens Recentes
Thanks David,

You are right that the issue is in httpd/mod_jk in general. I asked our System Administrators to disable(by pass) httpd/mod_jk as a work around and now our liferay is working as expected. I will start reading httpd doc to resolve the root issue.
As an option I was wondering if it is possible to configure liferay so the tilde(~) can be avoided in the url. I verified that liferay 6.2 works with httpd with no issues...and the url generated by liferay 6.2 does not have the ~ character in in it.
thumbnail
David H Nebinger, modificado 7 Anos atrás.

RE: Liferay 7/mod_jk and tilde(~) issue.

Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
I don't think it would be easily exchangeable, for example I've recently been tracing through how friendly url resolvers work and there's one for the asset publisher display page that uses the tilde explicitly in constructing URLs. My guess is that it is scattered throughout the code base and will not be easy to change.

You might try opening an issue on issues.liferay.com and see if you can garnish enough votes to affect a change...
Ahmedin Hassen, modificado 7 Anos atrás.

RE: Liferay 7/mod_jk and tilde(~) issue.

New Member Postagens: 5 Data de Entrada: 09/12/16 Postagens Recentes
David H Nebinger:
I don't think it would be easily exchangeable, for example I've recently been tracing through how friendly url resolvers work and there's one for the asset publisher display page that uses the tilde explicitly in constructing URLs. My guess is that it is scattered throughout the code base and will not be easy to change.

You might try opening an issue on issues.liferay.com and see if you can garnish enough votes to affect a change...


Thank you David,
I will try opening an issue for this.
By the way, we have liferay 6.2 Enterprise Edition and I don't see this issue on liferay 6.2 EE. I am not sure if this issue pertain specifically to the CE of liferay.
thumbnail
Jagan Mohan Jayaraman, modificado 7 Anos atrás.

RE: Liferay 7/mod_jk and tilde(~) issue.

New Member Postagens: 10 Data de Entrada: 19/02/17 Postagens Recentes
Hi Ahmedin,

Without your httpd.conf (or wherever you've configured your web server), it'd be difficult to help with this. You should note that a tilde has special meaning in your web server proxy configuration.

Have you checked if you get the same issue with mod_proxy as well or is it only with mod_jk?

TTFN,
Jagan.
Ahmedin Hassen, modificado 7 Anos atrás.

RE: Liferay 7/mod_jk and tilde(~) issue.

New Member Postagens: 5 Data de Entrada: 09/12/16 Postagens Recentes
Jagan Mohan Jayaraman:


Have you checked if you get the same issue with mod_proxy as well or is it only with mod_jk?


Hi Jagan,
Yes, checked with mod_proxy and same issue..