My rails application (3.0.11) accesses the file system to download files that users have put onto the file system via SMB. Unfortunately, OS X Lion Server creates files via SMB with these permissions...
rwx --- --- user everyone
...but it does add the appropriate permissions via ACL. The user that rails is run under is "admin" which has full access to the files via the ACLs. Now the problem...
send_file says it cannot access the file. If I add POSIX permissions to the file for "everyone" in which admin is a part of like this...
rwx r-x --- user everyone
...then it can access it even though it should be able to access it only via ACLs. If I put the permissions back to...
rwx --- --- user everyone
...and then try a File.open instead of a send_file rails can read the file. I can even use the open file and feed it to send_data and that works, but I can't use X-Sendfile when I do this.
So what's going on with send_file?