[ 
https://issues.apache.org/jira/browse/JSPWIKI-1172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17755890#comment-17755890
 ] 

ASF subversion and git services commented on JSPWIKI-1172:
----------------------------------------------------------

Commit f1cb2f633a792d58aff3d864c5e75ca9a619f86e in jspwiki's branch 
refs/heads/dependabot/maven/org.jdom-jdom2-2.0.6.1 from Arturo Bernal
[ https://gitbox.apache.org/repos/asf?p=jspwiki.git;h=f1cb2f633 ]

[JSPWIKI-1172] Improve PropertyReader and Installer for workDir setup

This commit makes a few key changes:
1. PropertyReader now checks for the existence of jspwiki.workDir. If it's 
missing, the servlet context's temporary directory (or the system's temporary 
directory if that's unavailable) is set as the working directory.
2. Removed direct usage of java.io.tmpdir in WikiEngine since jspwiki.workDir 
is now ensured to be set in PropertyReader.
3. Refactored the Installer to use wiki properties (specifically, 
jspwiki.workDir) instead of directly using java.io.tmpdir.

These changes streamline the handling of the working directory and ensure that 
it's consistently sourced from the same place (the wiki properties).


> jspwiki.workDir default should be in $javax.servlet.context.tempdir
> -------------------------------------------------------------------
>
>                 Key: JSPWIKI-1172
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-1172
>             Project: JSPWiki
>          Issue Type: Improvement
>          Components: Core & storage
>    Affects Versions: 2.11.2
>            Reporter: Jürgen Weber
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.12.1
>
>
> Currently the default of jspwiki.workDir is java.io.tmpdir
> On Unix this is often /tmp and space limited, sometimes in ramdisk.
> A better default would be the container default temp directory for each 
> context whose location is pointed to by the context variable 
> javax.servlet.context.tempdir
> [http://timjansen.github.io/jarfiller/guide/servlet25/temporarydirectory.xhtml]
> The change would have to be done in
> org.apache.wiki.WikiEngine.createAndFindWorkingDirectory(Properties)
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to