-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
Operating system: Debian 6.0
Web server: NginX 1.2.6
Database: MariaDB 5.5.29
PHP version: 5.4.11 (php5-fpm)
ownCloud version: 4.5.6
Hi,
when having a dot in the folder like:
.test
the creation and downloading of a .zip archive in the webgui leads to an archive with 0 bytes. Additionally this is shown in the php error log:
[06-Feb-2013 18:10:00 UTC] PHP Warning: fopen(/tmp/e429213ef13aa8f9f3838beb524317e5.test/test): failed to open stream: No such file or directory in /var/www/owncloud/lib/helper.php on line 513
[06-Feb-2013 18:10:00 UTC] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/owncloud/lib/helper.php on line 514
[06-Feb-2013 18:10:00 UTC] PHP Warning: file_put_contents(/tmp/e429213ef13aa8f9f3838beb524317e5.test/test): failed to open stream: No such file or directory in /var/www/owncloud/lib/filesystemview.php on line 526
It seems the method for creating a tmp file can't handle this dot in the directory name. I've just verified the same behavior over there at http://demo.owncloud.org/.
If this is a duplicate of #1117 feel free to close this report.
Reactions are currently unavailable