Fórum

Language portlet built-in template has wrong redirect

thumbnail
Vasily N. Kharitonov, modificado 12 Anos atrás.

Language portlet built-in template has wrong redirect

New Member Postagens: 19 Data de Entrada: 30/12/09 Postagens Recentes
Hello!

I want to include language portlet and some others in the header.
I use string
$theme.include($themeServletContext, "/custom-header.jsp") in velocity template.


in custom-header.jsp I call

<liferay-ui:journal-content-search></liferay-ui:journal-content-search>
.....
<liferay-ui:language> </liferay-ui:language>

to show language select panel.

But when I select language flag it sends me to error page

(Forbidden
You do not have permission to access the requested resource. )


Language portlet placed on the content area works good.

When I compared action links from language icons, I found that parameter p_auth is different.


This error happens on Glassfish V3. In development mode (Liferay IDE/Tomcat/Eclipse) it works good and parameter p_auth is the same on both portlets.

Why does it happens and How can I solve this?

Thanks!
thumbnail
Amos Fong, modificado 12 Anos atrás.

RE: Language portlet built-in template has wrong redirect

Liferay Legend Postagens: 2047 Data de Entrada: 07/10/08 Postagens Recentes
Hi Vasily,

The p_auth token should only be different if the user's session is different...anyhow you can tell the portal not to check language changing in portal-ext.properties.

See http://www.liferay.com/community/forums/-/message_boards/message/6339132
thumbnail
Vasily N. Kharitonov, modificado 12 Anos atrás.

RE: Language portlet built-in template has wrong redirect

New Member Postagens: 19 Data de Entrada: 30/12/09 Postagens Recentes
Amos Fong:
Hi Vasily,

The p_auth token should only be different if the user's session is different...anyhow you can tell the portal not to check language changing in portal-ext.properties.

See http://www.liferay.com/community/forums/-/message_boards/message/6339132



Thank you.
I added next strings into the portal-ext.properties

	auth.token.ignore.actions=\
		/journal_content_search/search,\
		/language/view


Language portlet reaction changed:
Now it switches language in one direction from non-default to default.
When I try to switch from default language to another nothing happens, but error message don't appear now.

Search portlet still doesnt work and shows the same error
thumbnail
Vasily N. Kharitonov, modificado 12 Anos atrás.

RE: Language portlet built-in template has wrong redirect

New Member Postagens: 19 Data de Entrada: 30/12/09 Postagens Recentes
After cleaning cookies language portlet works.

I have still problem with search portlet