TitleThis template uses <wiki:Content/> in an unsupported context: del
Date10-Jul-2006 18:02:29 EEST
Version2.4.17
SubmitterHarryMetske
Bug criticalityMediumBug
Browser versionFirefox 1504 and IE 6
Bug statusClosedBug
PageProvider usedVersioningFileProvider
Servlet ContainerWebSphere 6.0.2.9
Operating Systemz/OS
URLDelete.jsp
Java version1.4.2

When I want to delete either a whole page, or an attachment, I get the message :
This template uses in an unsupported context: del
The log shows the following stacktrace (truncated) :

SRVE0014E: Uncaught service() exception root cause /templates/default/EditTemplate.jsp: javax.servlet.jsp.JspException: This template uses <wiki:Content/> in an unsupported context: del

        at com.ecyrd.jspwiki.tags.ContentTag.doEndTag(ContentTag.java:144)
        at com.ibm._jsp._EditTemplate._jspx_meth_wiki_Content_0(_EditTemplate.java:245)
        at com.ibm._jsp._EditTemplate._jspService(_EditTemplate.java:99)
        at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java(Compiled Code))
        at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
        at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled Code))
        at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java(Compiled Code))
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled Code))
        at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java(Inlined Compiled Code))

        at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java(Compiled Code))

        at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:252)
        at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java(Compiled Code))
        at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java(Inlined Compiled Code))
        at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java(Compiled Code))
        at com.ecyrd.jspwiki.tags.IncludeTag.doEndTag(IncludeTag.java:83)
        at com.ibm._jsp._Delete._jspService(_Delete.java:150)
        at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java(Compiled Code))
        at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code)) 

Since I didn't feel very comfortable running JSPWiki in WebSphere (no good support, and it's not really tested in the public), I switched to Tomcat (5.5.17) with container managed security. I wrote a custom Tomcat RACFRealm, so we have integration with the native z/OS security subsystem. However, the problem still occurs when trying to delete a page or attachment. I did some more tests, and it looks like it has something to do with the "automatic" switch from http: to https: when you try to delete a page (due to the security constraint setting in web.xml).

When you first manually display the page over https instead of http, and then hit the Delete button, then you can succesfully delete the page. I haven't had the time yet to further investigate this yet.

--Harry Metske


Yup, it sounds probable that this has something to do with the http/https switch. I mean, deletion works perfectly under plain http... It might be some sort of a redirect issue.

-- JanneJalkanen

Just for the test I changed the web.xml:

           <!--transport-guarantee>CONFIDENTIAL</transport-guarantee-->
           <transport-guarantee>NONE</transport-guarantee>
, then indeed the problem does not occur.

-- Harry Metske

Since I dont use WebSphere anymore for the wiki, let us close the problem Harry Metske

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-6) was last changed on 23-Oct-2006 15:13 by HarryMetske