Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Dan Scully
Redirect action problem
October 22, 2012 5:33 AM
Answer

Dan Scully

Rank: Junior Member

Posts: 48

Join Date: October 13, 2011

Recent Posts

I've created a custom redirect action (extending Action ) that checks if a user is logged in using
1 return themeDisplay.isSignedIn();


This works fine except for one place in the portal: the dockbar. When I press the "Manage" button and then select e.g. "Page" (the first on the list), then a usual pop-up is displayed.

What I'd expect is that the page-management page would load - just as usual. Unfortunately my redirect action comes into play and says that the request in not authenticated -
1 themeDisplay.isSignedIn();
returns false.

Why? How can I modify my redirect to work with this JavaScript request?

--
Edit: I found this log entry before making the request to the "page-management" page: WARN [ThemeLocalServiceImpl:149] No theme found for specified theme id . Returning the default theme. This happens on one machine - and then the theme says there is a signed-in user. On the other machine, there is no user signed in.

But there is a p_p_auth token present...
Dan Scully
RE: Redirect action problem
October 24, 2012 1:38 AM
Answer

Dan Scully

Rank: Junior Member

Posts: 48

Join Date: October 13, 2011

Recent Posts

bump
Dan Scully
RE: Redirect action problem
October 25, 2012 11:05 PM
Answer

Dan Scully

Rank: Junior Member

Posts: 48

Join Date: October 13, 2011

Recent Posts

anybody? emoticon
Dan Scully
RE: Redirect action problem
October 28, 2012 11:59 PM
Answer

Dan Scully

Rank: Junior Member

Posts: 48

Join Date: October 13, 2011

Recent Posts

final bump ;(