Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-530

Upload fails when xwiki.upload.tempdir is not set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • None
    • {Unused} Core
    • None

    Description

      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.

      Attachments

        Activity

          People

            arunreddy Arun Reddy
            sdumitriu Sergiu Dumitriu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: