Foros de discusión

themeDisplay.getURLMyAccount() is getting null

Ngocha Haobam, modificado hace 7 años.

themeDisplay.getURLMyAccount() is getting null

Junior Member Mensajes: 87 Fecha de incorporación: 30/01/15 Mensajes recientes
I am getting null value in themeDisplay.getURLMyAccount(), how could I resolve this
Sébastien Morhan, modificado hace 7 años.

RE: themeDisplay.getURLMyAccount() is getting null

New Member Mensajes: 4 Fecha de incorporación: 5/12/14 Mensajes recientes
Hi
I am facing the same. Have you solved it?
Thanks
thumbnail
Olaf Kock, modificado hace 7 años.

RE: themeDisplay.getURLMyAccount() is getting null

Liferay Legend Mensajes: 6403 Fecha de incorporación: 23/09/08 Mensajes recientes
Can you provide more code/information? E.g. where/how do you access themeDisplay? Which version are you using? Basically some steps to reproduce
Sébastien Morhan, modificado hace 7 años.

RE: themeDisplay.getURLMyAccount() is getting null

New Member Mensajes: 4 Fecha de incorporación: 5/12/14 Mensajes recientes
1- We have a simple portlet with view.jsp inside containing that scriplet : themeDisplay.getURLMyAccount().toString() . That code has not changed for a while.

After checking a bit Liferay src code themeDisplay.getURLMyAccount() is null because a permission issue on below portlets. But I ignore why the user does not have permission on those OOTB Liferay portlets.

[{id=0, companyId=10154, portletId=2, roles=, active=true},
{id=0, companyId=10154, portletId=140, roles=, active=true},
{id=0, companyId=10154, portletId=153, roles=, active=true},
{id=0, companyId=10154, portletId=158, roles=, active=true}]

That check is done in ServicePreAction#initThemeDisplay

2- I have not tried to reproduce with a vanilla instance so it s difficult to give steps.

3- About version : we are using 6.2 + custom patches delivered by support

Before when it was OK, we got with patch level:
LPE-12471,LPE-13814,LPE-14144,LPE-14233,LPE-14371,LPE-14394,LPE-14430,LPE-14436,LPE-14451,LPE-14452,LPE-14507,LPE-14528,LPE-14557,LPE-14652,LPE-14653,LPE-14721,LPE-14755,LPE-14932,LPE-14976,portal-83

Since our last delivery, it s failing with that stack
LPE-12471,LPE-13814,LPE-13962,LPE-14144,LPE-14233,LPE-14311,LPE-14371,LPE-14394,LPE-14430,LPE-14436,LPE-14451,LPE-14452,LPE-14507,LPE-14528,LPE-14557,LPE-14652,LPE-14653,LPE-14721,LPE-14732,LPE-14755,LPE-14912,LPE-14931,LPE-14932,LPE-14950,LPE-14976,LPE-15087,portal-84

Thanks
thumbnail
Olaf Kock, modificado hace 7 años.

RE: themeDisplay.getURLMyAccount() is getting null

Liferay Legend Mensajes: 6403 Fecha de incorporación: 23/09/08 Mensajes recientes
with that description it sounds a lot like you should open a LESA ticket, giving exactly this information and maybe some sample code. If there was a regression in one of those patches that you newly installed, support will likely find/fix it, or give workarounds. As you're obviously using EE, that support is what you have it for...
thumbnail
Nirav Prajapati, modificado hace 7 años.

RE: themeDisplay.getURLMyAccount() is getting null

Regular Member Mensajes: 133 Fecha de incorporación: 25/06/15 Mensajes recientes
You can also go with this- PortalUtil.getCurrentURL(request)
Sébastien Morhan, modificado hace 7 años.

RE: themeDisplay.getURLMyAccount() is getting null

New Member Mensajes: 4 Fecha de incorporación: 5/12/14 Mensajes recientes
Thanks, we will also that workaround.

And I confirm that one of the latest patches we reveived is the root cause. I am going to raise a ticket to support