Hi,
The click servlet is reconnizing as resource not only files under /click, but
any extension distinct to htm or jsp.
In our application we generate pdf or xls, using theses extensions, and were
correctly mapped to clickServlet and working under 1.4.2. With the upgrade from
1.4.2 to 2.3.0 (yes a mega upgrade) these files are sent with size 0.
We modified the file ClickResourceService to include a validation to handle
just resources under /click as the documentation says:
public boolean isResourceRequest(HttpServletRequest request) {
String resourcePath = ClickUtils.getResourcePath(request);
// If not a click page and not JSP and not a directory
if (!resourcePath.contains("/click"))
return false;
return !configService.isTemplate(resourcePath)
&& !resourcePath.endsWith("/");
}
The added line is:
Hans Poo, Welinux S.A.
Bombero Ossa #1010, oficina 800,
+56-2-3729770, Movil: +56-9-3199305
Santiago, Chile