Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TempManager is not working #5472

Closed
janis91 opened this issue Jun 19, 2017 · 1 comment
Closed

TempManager is not working #5472

janis91 opened this issue Jun 19, 2017 · 1 comment

Comments

@janis91
Copy link

janis91 commented Jun 19, 2017

Steps to reproduce

  1. 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.

@janis91 janis91 closed this as completed Jun 20, 2017
@janis91
Copy link
Author

janis91 commented Jun 20, 2017

I don't know what caused this, but it's working now... magic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant