Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
J S
Chat Portlet and Impersonate problem
March 11, 2013 11:09 AM
Answer

J S

Rank: Junior Member

Posts: 31

Join Date: April 11, 2012

Recent Posts

Hi,

I've come across a problem with the Chat Portlet. If I login as an Admin user, and then impersonate another user, I get this javascript error in FireFox:

1SyntaxError: JSON.parse: unexpected end of data
2Native.parse(s,reviver) : _parse(s,reviver);


This is after hitting the /poller/send URL

Looking at the code it seems like the impersonation is not being picked up by the PollerServlet. The PortalImpl.getUser method isn't returning the impersonated user.

This seems to be because the /poller/send url is missing the doAsUserId request parameter.

Is this a known issue, or should I raise one?

The error is more of a problem on IE as the browser is popping up an error dialog every time the error occurs.

Thanks,

John