xwikisas/application-admintools

Warning message in console after exporting configuration files for Windows users

Opened this issue · 0 comments

After providing input dates (or leaving those empty in order to obtain today's info) in Get support files and pressing the Download button. The below warning message will appear in console:

2024-04-29 11:41:50,389 [http-nio-7635-exec-3 - http://localhost:7635/xwiki/rest/admintools/files?files=xwikiConfig&files=xwikiProperties&files=dataProvider&files=logs&from=28-04-2024&to=29-04-2024] WARN  c.x.a.i.d.SecurityDataProvider - Failed to access language or work directory environment variables.

After checking JSON file in zip archive, the PWD value will have NULL value.

In code it's responsible for work_directory value, but it's not set as environment value, as application expects.

The permanent directory is configured on my end, this part of my xwiki.properties file.

#-------------------------------------------------------------------------------------
# Environment
#-------------------------------------------------------------------------------------

#-# [Since 3.5M1, replaces the container.persistentDirectory property]
#-# The directory used to store persistent data (data that should persist across server restarts). This is an
#-# important directory containing important data and thus it should never be deleted (it should be backed-up along
#-# with the database).
#-# For example this is where the Extension Manager stores downloaded extensions if the extension.localRepository
#-# property isn't configured.
#-#
#-# You can set:
#-# * an absolute path (recommended)
#-# * a relative path (not recommended at all)but in this case the directory will be relative to where the XWiki server
#-#   is started and thus the user under which XWiki is started will need write permissions for the current directory
#-#
#-# Note if the system property xwiki.data.dir is set then this property is not used.
#-# If neither the system property nor this configuration value here are set then the Servlet container's temporary
#-# directory is used; This is absolutely not recommended since that directory could be wiped out at any time and you
#-# should specify a value.
environment.permanentDirectory = D:\\permanent directory for xwiki