Forums de discussion

Poller Service not working for unauthenticated user

thumbnail
Laurent Gauthier, modifié il y a 12 années.

Poller Service not working for unauthenticated user

New Member Publications: 15 Date d'inscription: 03/02/10 Publications récentes
I am running tests with the Poller Service and the com.liferay.portal.poller.PollerServlet.

Everything is working fine and as expected with an authenticated user. With an anonymous user, things break down.

What happens is that in the following code fragment from PollerServlet, the pollerRequestString is null although it is passed from the client.

protected String getPollerRequestString(HttpServletRequest request)
throws Exception {

String pollerRequestString = ParamUtil.getString(
request, "pollerRequest");

if (Validator.isNull(pollerRequestString)) {
return null;
}



This prevents any processing of the pollerRequest.

I am using LR 6.0.5.

I thought I had the solution by adding /poller/receive and /poller/send to "auth.public.paths" in portal-ext.properties but that did not have any effect.

Through Eclipse and Firebug debugging, I can see that the pollerRquest never reaches my PollerProcessor when the client is not authenticated.

I can see that this may very well be a security feature but does anybody know how to make poller request work for unauthenticated users?