History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: XWIKI-530
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Sergiu Dumitriu
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
XWiki Core

Upload fails when xwiki.upload.tempdir is not set

Created: 13/Dec/06 06:37 PM   Updated: 17/Mar/08 06:19 PM
Component/s: None
Affects Version/s: None
Fix Version/s: Future

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Date of First Response: 27/Apr/07


 Description  « Hide
The parameter xwiki.upload.tempdir is used to specify where to put files larger than the in-memory threshold. On some (linux) systems, if this path is not set, the upload action fails, throwing:

java.lang.NullPointerException
at com.xpn.xwiki.web.UploadAction.action(UploadAction.java:51)

This should be fixed by checking if the default location is writable, and providing a default writable path, like /tmp, or TOMCAT_HOME/temp on linux.



 All   Comments   Work Log   Change History      Sort Order:
Vincent Massol [27/Apr/07 06:43 PM]
Note: There is also a wrong "Temporary directory not set" message that happens when the multipart/form-data mimetype is blocked. This has happened for example with Apache and mod_security. We need some better exception for this.