arturobernalg opened a new pull request, #282: URL: https://github.com/apache/jspwiki/pull/282
Description: This pull request addresses the issue JSPWIKI-XXXX by changing the default value of jspwiki.workDir from java.io.tmpdir to the servlet container's context-specific temp directory, as provided by the "javax.servlet.context.tempdir" context attribute. Key Changes: - A new ServletContextListener, WikiServletContextListener, has been created to manage this setting during context initialization. - - In case the servlet container does not provide a temporary directory, the system's default temporary directory is used as a fallback. - - This modification aids in avoiding possible problems associated with space limitations in the system's temporary directory, especially on Unix systems where /tmp is often space-limited and sometimes located in a ramdisk. Testing: - Unit tests have been added for the new WikiServletContextListener to ensure the directory is set correctly during context initialization, and that an exception is thrown if the directory is not writable. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@jspwiki.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org