Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[bugfix][server] Fix temporary path permission issue
If I don't misread the docs, if a template is given, the file is created in the current directory instead of the temporary directory reported by QDir::tempPath() Furthermore it cannot be set by env TMPDIR. This issue drove me crazy (and no exceptions and no logs!) until when I switched the server user to root (that is of course not what we want). As a temporary workaround, the server can be configured to use /tmp or another www-data writeable directory as a working directory. By prefixing with tempPath() the file will be created in the system temp directory.
- Loading branch information
Showing
3 changed files
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters