roland-20150223-backtrace-qy7r.txt
Error showing notice: File not found in filesystem.
@mmn And I always (!) have to run this after I upload a file:
vu2001@zulu289:~/social/htdocs$ chmod -c a+r file/*
mode of `file/roland-20150223-backtrace-qy7r.txt' changed from 0600 (rw-------) to 0644 (rw-r--r--)
vu2001@zulu289:~/social/htdocs$
@roland Do you see a directory called "AntiBrute" when you do "ls /var/www/virtual/mxchange.org/social/htdocs/plugins/" or "ls /var/www/virtual/mxchange.org/social/htdocs/local/" ?
@lnxw48 Access rights were missing ... Okay, #fixed.
@roland Your webserver should reasonably be allowed to read the files in a web application's directory. You should check your webserver config (as in which user it runs as, which user owns the 'file' directory etc.). It's not a #GNUsocial bug anyway (but I think you can set the file upload default umask/permissions, in case webserver config is out of the question or too hard)
@mmn Or how about adding a chmod 0644 (configurable) to #gnusocial? Then people are not forced to change their server config (e.g. on a shared server with virtual servers this is not always possible without extra payment. A little chmod() call could prevent these extra payments (yes, such "hoster" exist).
On shared server there's no problem with this setup because the webserver will be able to read everything you create with your PHP scripts.
@roland Your webserver should be able to read anything it uploads, since it should automatically have user permissions. Exception: if you're using #FastCGI and running your #PHP daemon under a different user, you may need to fiddle with group memberships. CC: @mmn
@mmn @lnxw48 I have pushed an improved patch that makes it configurable (default 0644) setting #chmod: https://gitorious.org/social/quix0rs-gnu-social/commit/a6b085d746a1161c45ae5bb6e091e30af05668ef
There are more places with #chmod in the source, all seem to be 0644. Maybe you could do a more general configurable default chmod value instead of just for thumbnails?
You'll get to remove a "FIXME" then as well from the Ostatus_profile class ;)
@mmn Done: e32241d ('attachments', 'chmod' is more general)