TitleThrows an exception when trying to attach a file to a page with a fancy name (UTF-8)
Date14-Nov-2004 16:51:24 EET
VersionJSPWiki v2.1.120-cvs (this site)
SubmitterMinusDee
PageProvider usedn/a
CriticalityBadBug
Servlet Containern/a
Browser versionn/a
URLЗаработаетЛи
StatusClosedBug
Java versionn/a

How to repeat: try to attach a file to this page

Exception thrown:

java.lang.NullPointerException
	com.ecyrd.jspwiki.auth.AuthorizationManager.getAcl(AuthorizationManager.java:132)
	com.ecyrd.jspwiki.auth.AuthorizationManager.getAcl(AuthorizationManager.java:149)
	com.ecyrd.jspwiki.auth.AuthorizationManager.checkPermission(AuthorizationManager.java:244)
	com.ecyrd.jspwiki.auth.AuthorizationManager.checkPermission(AuthorizationManager.java:214)
	com.ecyrd.jspwiki.attachment.AttachmentServlet.upload(AttachmentServlet.java:417)
	com.ecyrd.jspwiki.attachment.AttachmentServlet.doPost(AttachmentServlet.java:309)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

note The full stack trace of the root cause is available in the Apache Tomcat/5.0.24 logs.

--MinusDee


Yeah, it also seems that attaching a file with non-ASCII chars also fails.

-- JanneJalkanen


Should be fixed in 2.1.135.

---

Just side note. If you are adding the attachments to an "empty" or "uncreated" page, you will still get above exception which is not nice, should not be an issue in practical life.

-- YogeshPatel

Ugh. You may be right. Opened again.

-- JanneJalkanen

This should now finally be fixed in 2.1.163. Closing...

-- JanneJalkanen

Uhm, is not really working, even not in the example.. If you open the "Attach file..." link you don't see the existing attachments and the attachment name looks also scrambled in the upload window.

-- ThomasRuth

I see them quite fine. What is your operating system and browser?

-- JanneJalkanen

Browser is IE 6.0 on WinXP. If I open "Attach file..." on the this page, I see "Upload new attachment to ÐÐÑÐÐÐÑРе ÑÐÐ" and no listed attachment.

-- ThomasRuth

Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
txt
test.txt 0.0 kB 1 21-Nov-2006 10:29 202.91.136.71
« This page (revision-11) was last changed on 07-Oct-2005 14:15 by 84.139.220.137