-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Description
Rik Coomans opened SPR-11717 and commented
ShallowEtagHeaderFilter.setContentLength causes an error when rendering a jsp which performs an include:
Caused by: java.io.IOException: JSPException including path '/alg/include/e_footer.jsp'.
at org.apache.tiles.request.servlet.ServletUtil.wrapServletException(ServletUtil.java:61)
at org.apache.tiles.request.jsp.JspRequest.doInclude(JspRequest.java:125)
at org.apache.tiles.request.AbstractViewRequest.dispatch(AbstractViewRequest.java:47)
at org.apache.tiles.request.render.DispatchRenderer.render(DispatchRenderer.java:45)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:259)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:397)
... 65 more
Caused by: java.lang.IllegalArgumentException: New capacity must not be smaller than current size
at org.springframework.util.Assert.isTrue(Assert.java:65)
at org.springframework.util.ResizableByteArrayOutputStream.resize(ResizableByteArrayOutputStream.java:65)
at org.springframework.web.filter.ShallowEtagHeaderFilter$ShallowEtagResponseWrapper.setContentLength(ShallowEtagHeaderFilter.java:217)
at javax.servlet.ServletResponseWrapper.setContentLength(ServletResponseWrapper.java:159)
at javax.servlet.ServletResponseWrapper.setContentLength(ServletResponseWrapper.java:159)
at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:777)
at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:338)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:832)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:718)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:655)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:940)
at org.apache.jsp.alg.include.e_005ffooter_jsp._jspService(e_005ffooter_jsp.java:78)
Affects: 4.0.3
Issue Links:
- ShallowEtagHeaderFilter should make use of specified content length [SPR-8271] #12919 ShallowEtagHeaderFilter should make use of specified content length
- ShallowEtagHeaderFilter should write body early when HttpServletResponse.sendError() is called [SPR-11705] #16327 ShallowEtagHeaderFilter should write body early when HttpServletResponse.sendError() is called
- ShallowEtagHeaderFilter.setContentLength causes an error when rendering a jsp which performs an include: [SPR-13671] #18246 ShallowEtagHeaderFilter.setContentLength causes an error when rendering a jsp which performs an include:
Metadata
Metadata
Assignees
Labels
type: bugA general bugA general bug