Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Sylvain Pasche
Problem with long URLs
30. April 2013 06:24
Antwort

Sylvain Pasche

Rang: New Member

Nachrichten: 3

Eintrittsdatum: 26. Februar 2013

Neue Beiträge

Hi,

We are using Liferay 6.1 behind a Proxy (for SSO). That proxy has a limit on size of the URLs it can handle.

Some of the portlets we use generate long URLs. For instance, the "my_sites" portlet generates URLs in the site table like this:

http://mysite/cxnet/home?p_auth=abcdefg&p_p_id=29&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&p_p_col_id=column-2&p_p_col_pos=1&p_p_col_count=2&_29_struts_action=%2Fmy_sites%2Fpage&_29_redirect=http%3A%2F%2Fmysite%2Fcxnet%2Fhome%3Fp_p_id%3D29%26p_p_lifecycle%3D0%26p_p_state%3Dnormal%26p_p_mode%3Dview%26p_p_col_id%3Dcolumn-2%26p_p_col_pos%3D1%26p_p_col_count%3D2%26_29_tabs1%3Dmy-sites%26_29_page%3D1%26_29_page%3D1%26_29_name%3Dwipo%26_29_groupsSearchContainerPrimaryKeys%3D254428%252C253896%252C255139%252C255314%252C253629%252C255576%252C257596%252C256385%252C255162%252C255410%252C253261%252C255599%252C256196%252C257334%252C255260%252C253652%252C254520%252C253974%252C255696%252C255337%26_29_struts_action%3D%252Fmy_sites%252Fview%26_29_itemsPerPage%3D20%26_29_itemsPerPage%3D20%26_29_formDate%3D1367306876282&_29_groupId=257001&_29_privateLayout=true

Do you know if there is a mechanism that can be used to avoid having such long URLs?

Thanks,
Sylvain
Ramendra Singh Shekhawat
RE: Problem with long URLs
1. Mai 2013 00:14
Antwort

Ramendra Singh Shekhawat

Rang: New Member

Nachrichten: 9

Eintrittsdatum: 11. September 2010

Neue Beiträge

You can use friendly urls to avoid the long urls in your browsers.
Sylvain Pasche
RE: Problem with long URLs
15. Mai 2013 04:52
Antwort

Sylvain Pasche

Rang: New Member

Nachrichten: 3

Eintrittsdatum: 26. Februar 2013

Neue Beiträge

Thanks for your answer.

My understanding of friendly urls is that you have to write a configuration for each portlet. I was looking for a more generic solution.
Sylvain Pasche
RE: Problem with long URLs
15. Mai 2013 07:06
Antwort

Sylvain Pasche

Rang: New Member

Nachrichten: 3

Eintrittsdatum: 26. Februar 2013

Neue Beiträge

It turns out that the issue we had wasn't related to the URL length (our Proxy didn't like the double encoded slashes in some parameters / -> %2F -> %252F).

You can ignore my question ;-)