Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-1) was last changed on 04-Jul-2007 03:04 by Robert Berg  

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 1 added 68 lines
|Title|upload attachment error
|Date|04-Jul-2007 03:04:52 EEST
|Version|V2.4.102
|Submitter|Robert Berg
|[Bug criticality]|LightBug
|Browser version|Internet Explorer
|[Bug status]|NewBug
|[PageProvider] used|
|Servlet Container|Tomcat
|Operating System|XP
|URL|Upload.Jsp
|Java version|1.5.0_10
I use Tomcat container authentication. When I try to attach a file to a wiki page, I get a Null Pointer exception as follows:
Jul 3, 2007 1:36:14 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet AttachmentServlet threw exception
<url-pattern>/Upload.jsp</url-pattern>
java.lang.NullPointerException
<url-pattern>/Upload.jsp</url-pattern>
at com.ecyrd.jspwiki.auth.AuthorizationManager.checkPermission(AuthorizationManager.java:160)
at com.ecyrd.jspwiki.WikiContext.hasAdminPermissions(WikiContext.java:813)
at com.ecyrd.jspwiki.attachment.AttachmentServlet.executeUpload(AttachmentServlet.java:611)
at com.ecyrd.jspwiki.attachment.AttachmentServlet.upload(AttachmentServlet.java:545)
at com.ecyrd.jspwiki.attachment.AttachmentServlet.doPost(AttachmentServlet.java:412)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at com.ecyrd.jspwiki.dav.WebdavServlet.service(WebdavServlet.java:152)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
Version Date Modified Size Author Changes ... Change note
1 04-Jul-2007 03:04 2.718 kB Robert Berg
« This page (revision-1) was last changed on 04-Jul-2007 03:04 by Robert Berg