You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use TempManager->getTemporaryFile() with or without PostFix
Expected behaviour
The TempManager should use the specified path in the config (tempdirectory) as base path and create (touch) a temporary file like oc_tmp_mypugG OR depending on a given postfix (eg 'txt') it should create a temporary file with postfix oc_tmp_mypugG.txt.
Actual behaviour
It doesn't create anything (tested with root access for the server). The file name returned is also very weird for the postFix case (its something like: oc_tmp_mypugG-.txt - with a score between the temporary filename and the postfix).
Server configuration
Operating system: Debian 8
Web server: simple php dev server
Database: sqlite
PHP version: 7.0
Nextcloud version: 12
Updated from an older Nextcloud/ownCloud or fresh install: no
Where did you install Nextcloud from: git
I already looked at the code and it seems to me, that the tempmanager only creates (touches) a file if there is a postfix given.. in the other case it doesn't. And for the postFix case something else may not work, as for me in both cases the file doesn't get created.
Hope that helps.
The text was updated successfully, but these errors were encountered:
Steps to reproduce
Expected behaviour
The TempManager should use the specified path in the config (tempdirectory) as base path and create (touch) a temporary file like
oc_tmp_mypugG
OR depending on a given postfix (eg 'txt') it should create a temporary file with postfixoc_tmp_mypugG.txt
.Actual behaviour
It doesn't create anything (tested with root access for the server). The file name returned is also very weird for the postFix case (its something like:
oc_tmp_mypugG-.txt
- with a score between the temporary filename and the postfix).Server configuration
Operating system: Debian 8
Web server: simple php dev server
Database: sqlite
PHP version: 7.0
Nextcloud version: 12
Updated from an older Nextcloud/ownCloud or fresh install: no
Where did you install Nextcloud from: git
I already looked at the code and it seems to me, that the tempmanager only creates (touches) a file if there is a postfix given.. in the other case it doesn't. And for the postFix case something else may not work, as for me in both cases the file doesn't get created.
Hope that helps.
The text was updated successfully, but these errors were encountered: