We added servlet filter to our application which calls 
request.getParameter("name"). That breaks Restlet Form handling. 
request.getEntityAsForm() will return empty form.

It seems that getParameter interferes with getInputStream in the case form data 
is sent using POST. To me this sounds to be a bug in Restlet framework. We are 
using Restlet 1.1.1.

This simple filter will break getEntityAsForm:

public void doFilter(ServletRequest request, ServletResponse response, 
FilterChain chain) throws IOException, ServletException {
  request.getParameter("name");
  chain.doFilter(request, response);
}

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1015889

Reply via email to