FS#40643 - [roundcubemail] Symlink of temp folder to /tmp/roundcube causes file attachement/upload fail
Attached to Project:
Community Packages
Opened by Witit Sujjapong (bsujja) - Monday, 02 June 2014, 13:26 GMT
Last edited by Sergej Pupykin (sergej) - Thursday, 26 June 2014, 16:58 GMT
Opened by Witit Sujjapong (bsujja) - Monday, 02 June 2014, 13:26 GMT
Last edited by Sergej Pupykin (sergej) - Thursday, 26 June 2014, 16:58 GMT
|
Details
Description:
The change in 1.0.1-2, symlink of temp folder to /tmp/roundcube causes file attachment/upload fail Additional info: * package version(s) 1.0.1-2 * config and/or log files etc. Steps to reproduce: After upgraded to 1.0.1-2, cannot attach file to email. File upload failed. Changed back by removing symlink /usr/share/webapps/roundcubemail/temp -> /tmp/roundcube and recreating temp folder, file attachment/upload works again. |
This task depends upon
error log:
[02-Jun-2014 17:51:14 Asia/Bangkok] PHP Warning: tempnam(): open_basedir restriction in effect. File() is not within the allowed path(s): (/srv/http/:/srv/http/www/:/home/:/tmp/:/var/log/roundcubemail/:/usr/share/pear/:/usr/share/webapps/:/usr/share/misc/magic/:/etc/webapps/:/etc/nginx/) in /usr/share/webapps/roundcubemail/plugins/filesystem_attachments/filesystem_attachments.php on line 57
[02-Jun-2014 17:51:14 Asia/Bangkok] PHP Warning: move_uploaded_file(): open_basedir restriction in effect. File() is not within the allowed path(s): (/srv/http/:/srv/http/www/:/home/:/tmp/:/var/log/roundcubemail/:/usr/share/pear/:/usr/share/webapps/:/usr/share/misc/magic/:/etc/webapps/:/etc/nginx/) in /usr/share/webapps/roundcubemail/plugins/filesystem_attachments/filesystem_attachments.php on line 59
Thanks Witit for the solution!
It's strange that those logs contain "File()" with no file contained in the parenthesis, same happened to me, and just by recreating the /usr/share/webapps/roundcubemail/temp folder the error disappears. (Well, I also chowned it to be sure.)
[ALPM-SCRIPTLET] chown: cannot access ‘var/log/roundcubemail’: No such file or directory
don't forget to update apache config