Until a better solution comes along, this tiny patch makes the temp files 
world-readable:

http://cancan.cshl.edu/labmembers/gordon/files/apache_xsendfile_temp_files.patch

Assaf Gordon wrote, On 04/05/2011 11:14 AM:
> Hello,
> 
> I've encountered a strange combination of factors that results in file access 
> problems.
> Perhaps I'm doing something wrong - any advice will be appreciated.
> 
> I'm using Apache + XSendFile.
> 
> when viewing a strict BED file, everything works, because the actual dataset 
> filename is passed on to Apache/XSendFile.
> 
> When viewing any other kind of interval file, Galaxy first creates a 
> temporary file in strict BED format ( in "Interval::as_ucsc_display_file()" ).
> This method uses "tempfile.mkstemp()", which is documented to create a 
> temporary file with user-only read/write access (no group or world access).
> So when the file name is passed on to apache/XsendFile - apache can't read 
> the file and returns 404.
> 
> I'm wondering if anyone else encountered such problem, or is my configuration 
> is somehow wrong.
> 
> Thanks,
>  -gordon
> ___________________________________________________________
> Please keep all replies on the list by using "reply all"
> in your mail client.  To manage your subscriptions to this
> and other Galaxy lists, please use the interface at:
> 
>   http://lists.bx.psu.edu/

___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:

  http://lists.bx.psu.edu/

Reply via email to