|Title|Delete fails if page has attachmens
|Date|17-Jun-2005 17:15:06 EEST
|Version|2.2.20
|Submitter|84.141.137.13
|[Bug criticality]|[JSPWiki:BadBug]
|Browser version|Firefox 1.0.4
|[Bug status]|ClosedBug
|[PageProvider] used|RCSFileProvider
|Servlet Container|Tomcat 5.0.27
|Operating System|SuSE 9.2
|URL|
|Java version|1.4.2-05

If the page that is supposed to be deleted has attachmenst I get an exception since the page afterward is gone but not so the attachments.

2005-06-17 16:13:43,104 [TP-Processor8] WARN com.ecyrd.jspwiki.tags.WikiTagBase JSPWiki:DeletePage JSPWiki:DeletePage - Including failed, got a servlet exception from sub-page. Rethrowing the exception to the JSP engine.
org.apache.jasper.JasperException
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
	at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
	at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:581)
	at com.ecyrd.jspwiki.tags.IncludeTag.doEndTag(IncludeTag.java:68)
	at org.apache.jsp.templates.ibmw3_002dexperimental.ViewTemplate_jsp._jspx_meth_wiki_Include_0(ViewTemplate_jsp.java:689)
	at org.apache.jsp.templates.ibmw3_002dexperimental.ViewTemplate_jsp._jspx_meth_wiki_CheckRequestContext_0(ViewTemplate_jsp.java:664)
	at org.apache.jsp.templates.ibmw3_002dexperimental.ViewTemplate_jsp._jspService(ViewTemplate_jsp.java:249)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)



See attached fix [fixdelete.patch]. This patch has been build for 2.2.20 and seemed to be OK in my tests....

-- Joerg Luedeker

----

Fixed in 2.2.26.  Thanks for the patch!