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

Log is written in owncloud.log file when creating a folder #25131

Closed
davitol opened this issue Jun 16, 2016 · 2 comments
Closed

Log is written in owncloud.log file when creating a folder #25131

davitol opened this issue Jun 16, 2016 · 2 comments

Comments

@davitol
Copy link
Contributor

davitol commented Jun 16, 2016

Steps to reproduce

  1. Create a folder in ownCloud

Expected behaviour

The folder is created and no log is written in owncloud.log

Actual behaviour

A log is written in owncloud.log

Server configuration

Operating system:
Ubuntu 14.04

Web server:
Apache

Database:
MySQL

PHP version:
5.5.9

**ownCloud version:"9.1.0.8","versionstring":"9.1.0 beta 2","edition":"Enterprise"

Updated from an older ownCloud or fresh install:
Fresh

Are you using external storage, if yes which one: local/smb/sftp/...
No

Are you using encryption:
No

Logs

{"reqId":"6a4OBTOZpc8rNysS+s4c","remoteAddr":"82.159.139.58","app":"PHP","message":"Undefined index: extension at \/opt\/owncloud\/apps\/workflow\/lib\/Engine\/Wrapper\/StorageWrapper.php#60","level":3,"time":"2016-06-16T08:05:53+00:00","method":"MKCOL","url":"\/remote.php\/webdav\/Foldername","user":"admin"}

Client configuration

browser

FIrefox

@davitol davitol added this to the 9.1-current milestone Jun 16, 2016
@nickvergessen
Copy link
Contributor

Patch needs to be done in the workflow app:

diff --git a/lib/Engine/Wrapper/StorageWrapper.php b/lib/Engine/Wrapper/StorageWrapper.php
index 72d89bf..04988ed 100644
--- a/lib/Engine/Wrapper/StorageWrapper.php
+++ b/lib/Engine/Wrapper/StorageWrapper.php
@@ -57,7 +57,7 @@ class StorageWrapper extends Wrapper {
                // test.txt.ocTransferId3462648575.part
                $pathInfo = pathinfo($path);

-               if ($pathInfo['extension'] === 'part') {
+               if (isset($pathInfo['extension']) && $pathInfo['extension'] === 'part') {
                        // test.txt.ocTransferId3462648575
                        $pathInfo2 = pathinfo($pathInfo['filename']);
                        if (preg_match('/^ocTransferId\d+$/', $pathInfo2['extension'])) {

@lock
Copy link

lock bot commented Aug 4, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants