The problem seems to be in the lack of authentication by the request sent by IGV. The galaxy instance is set to require a username and password with "require_login = True" in universe_wsgi.ini, which means that when IGV attempts to download the BAM file at http://example.org/galaxy/display_application/e2132aef71b11dbf/igv_bam/local_default/aaaaaaaaaaaaaaaa/data/galaxy_e2132aef71b11dbf.bam, galaxy redirects to the login page.
Sorry, the subject should read "mistakenly routed to root". The question still stands.-rOn Fri, Jun 22, 2012 at 2:10 PM, Rob Syme <rob.syme@gmail.com> wrote:
Galaxy type: localI'm trying to get IGV to download files served from the galaxy instance through "display_application".When IGV makes a request for the BAM file, it is re-routed to root like so:--2012-06-22 13:58:00-- http://example.org/galaxy/display_application/e2132aef71b11dbf/igv_bam/local_default/cc7ba224ab9e7b70/data/galaxy_e2132aef71b11dbf.bamConnecting to example.org:80... connected.HTTP request sent, awaiting response... 302 FoundLocation: /galaxy/root?app_action=data&user_id=cc7ba224ab9e7b70&app_name=igv_bam&link_name=local_default&action_param=galaxy_e2132aef71b11dbf.bam&dataset_id=e2132aef71b11dbf [following]--2012-06-22 13:58:00-- http://example.org/galaxy/root?app_action=data&user_id=cc7ba224ab9e7b70&app_name=igv_bam&link_name=local_default&action_param=galaxy_e2132aef71b11dbf.bam&dataset_id=e2132aef71b11dbfReusing existing connection to example.org:80.HTTP request sent, awaiting response... 200 OKLength: unspecified [text/html]Saving to: 'galaxy_e2132aef71b11dbf.bam.1'[ <=> ] 27,581 --.-K/s in 0s2012-06-22 13:58:00 (146 MB/s) - 'galaxy_e2132aef71b11dbf.bam.1' saved [27581]Giving us a text/html page rather than the BAM file.I see that I'm not the first person to run into this: http://lists.bx.psu.edu/pipermail/galaxy-dev/2011-December/007901.html but I'm still not really sure how to solve the problem.I'm no sysadmin, so my apache config skills are very patchy. My config is up at https://gist.github.com/2970592. Any help would be very much appreciated.Rob SymePhD StudentCurtin University