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

When creating a new file in WebGUI inside a folder, it works, but apache log shows PHP error #417

Closed
halfgaar opened this issue Nov 14, 2012 · 3 comments

Comments

@halfgaar
Copy link

Using the WebGUI, when you create a folder and in it you create a test file, it works, but there is a PHP error in the apache logs. The filepath is missing a slash.

When you make the file in the users root dir, it works fine.

Version: 4.5.2 (or actually, latest version of stable45 branch as of nov 14 16:00 +0100).

Steps to reproduce:

  • create user1
  • login with user1
  • create folder "put it here" and enter it.
  • create text file "I make errors.txt"

[Wed Nov 14 15:56:40 2012] [error] [client 89.188.25.162] PHP Warning: filesize(): stat failed for /var/www/owncloud-stable45/data/allesdeler/filesput it here/I make errors.txt in /var/www/owncloud-stable45/lib/filestorage/local.php on line 45, referer: http://storagetest.curaxl.nl/?app=files&dir=//put%20it%20here

[Wed Nov 14 15:56:40 2012] [error] [client 89.188.25.162] PHP Warning: copy(/var/www/owncloud-stable45/data/allesdeler/filesput it here/I make errors.txt): failed to open stream: No such file or directory in /var/www/owncloud-stable45/lib/filestorage/local.php on line 109, referer: http://storagetest.curaxl.nl/?app=files&dir=//put%20it%20here

Because a copy action fails, something breaks, but I can't see what.

It's also clear what goes wrong: a slash is missing in the path:

/var/www/owncloud-stable45/data/allesdeler/filesput it here/I make errors.txt

should be

/var/www/owncloud-stable45/data/allesdeler/files/put it here/I make errors.txt
@karlitschek
Copy link
Contributor

I think this is fixed. Can you verify if this bug still exiats with ownCloud 5 ?

@MorrisJobke
Copy link
Contributor

Try it with laster master (5bb248e). Followed "Steps to reproduce" and no error occured. (Ubuntu 12.04.2, Apache, Mysql)

@halfgaar
Copy link
Author

halfgaar commented Apr 9, 2013

I tried it with 5.0, and it indeed seems to work OK.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 23, 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

4 participants