Foros de discusión

Chat Portlet and Impersonate problem

J S, modificado hace 11 años.

Chat Portlet and Impersonate problem

Junior Member Mensajes: 31 Fecha de incorporación: 11/04/12 Mensajes recientes
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:

SyntaxError: JSON.parse: unexpected end of data
Native.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