|Title|Throws an exception when trying to attach a file to a page with a fancy name (UTF-8)
|Date|14-Nov-2004 16:51:24 EET
|Version|JSPWiki v2.1.120-cvs (this site)
|Submitter|MinusDee
|[PageProvider] used|n/a
|Criticality|~BadBug
|Servlet Container|n/a
|Browser version|n/a
|URL|ЗаработаетЛи
|Status|ClosedBug
|Java version|n/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