This is version . It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]
TitleNullPointerException in Upload when jspwiki security is off
Date12-Jan-2007 16:26:55 EET
Bug criticalityLightBug
Browser versionie, firefox
Bug statusNewBug
PageProvider usedVersioningFileProvider
Servlet Containerresin 2.1.16
Operating Systemwin XP
Java version1.4.2

Uploading a newer version of an attachtment while jspwiki.securiry=off results in a NullPointerException. Apparently a check is done for non-existent admin permissions.

The stacktrace is:

	at com.ecyrd.jspwiki.auth.AuthorizationManager.checkPermission(
	at com.ecyrd.jspwiki.WikiContext.hasAdminPermissions(
	at com.ecyrd.jspwiki.attachment.AttachmentServlet.executeUpload(
	at com.ecyrd.jspwiki.attachment.AttachmentServlet.upload(
	at com.ecyrd.jspwiki.attachment.AttachmentServlet.doPost(
	at javax.servlet.http.HttpServlet.service(
	at com.ecyrd.jspwiki.dav.WebdavServlet.service(
	at javax.servlet.http.HttpServlet.service(
	at com.caucho.server.http.FilterChainServlet.doFilter(
	at com.ecyrd.jspwiki.ui.WikiServletFilter.doFilter(
	at com.caucho.server.http.FilterChainFilter.doFilter(

Setting JSPWiki's security to off is neither supported nor tested. We provided the option to help system administrators to get their wikis up and running, but not to be used in regular operations. This particular issue is not something we will investigate or fix.

--Andrew Jaquith, 13-Jan-2007

Add new attachment

Only authorized users are allowed to upload new attachments.
« This particular version was published on 13-Jan-2007 05:44 by Andrew Jaquith.