IGV fails to launch from JNLP file when data files URL contains %2B or (+) sign

233 views
Skip to first unread message

pa...@pieriandx.com

unread,
Jan 20, 2017, 3:10:05 PM1/20/17
to igv-help
I have my JNLP file  as below 

<application-desc main-class='org.broad.igv.ui.Main'>
    <argument>https://s3.amazonaws.com/filepath/main.bam?AWSAccessKeyId=wfwfw87fwffqw&amp;Expires=1484944197&amp;Signature=%2ByaTBb90oJRltCWMnvCoXArq3Pk%3D</argument>
    <argument>Chr23:74290334-74290334</argument>
    <argument>-g</argument>
    <argument>hg19</argument>
</application-desc>


Now when i launch this JNLP file i see below snippet in the log files.

INFO [2017-01-20 11:53:32,422] [Main.java:439]  Loading: https://s3.amazonaws.com/filepath/main.bam?AWSAccessKeyId=wfwfw87fwffqw&Expires=1484944197&Signature=+yaTBb90oJRltCWMnvCoXArq3Pk=
INFO [2017-01-20 11:53:32,603] [IGVPreferences.java:198]  Overriding preference: SAM.SHOW_SOFT_CLIPPED=true
INFO [2017-01-20 11:53:33,964] [GenomeManager.java:145]  Loading genome: C:\Users\Pavan\igv\genomes\hg19.genome
INFO [2017-01-20 11:53:35,518] [GenomeManager.java:192]  Genome loaded.  id= hg19
INFO [2017-01-20 11:53:35,633] [IGV.java:1705]  Loading 2 resources.
INFO [2017-01-20 11:53:35,634] [TrackLoader.java:126]  Loading resource, path https://s3.amazonaws.com/filepath/main.bam?AWSAccessKeyId=wfwfw87fwffqw&Expires=1484944197&Signature= yaTBb90oJRltCWMnvCoXArq3Pk=
INFO [2017-01-20 11:53:36,280] [HttpUtils.java:288]  HEAD request failed for url: https://s3.amazonaws.com/filepath/main.bam?AWSAccessKeyId=wfwfw87fwffqw&Expires=1484944197&Signature= yaTBb90oJRltCWMnvCoXArq3Pk=
INFO [2017-01-20 11:53:39,476] [HttpUtils.java:833]  Range-byte request succeeded
ERROR [2017-01-20 11:53:39,665] [TrackLoader.java:270]  Read error; BinaryCodec in readmode; streamed file (filename not available)
htsjdk.samtools.util.RuntimeIOException: Read error; BinaryCodec in readmode; streamed file (filename not available)
at htsjdk.samtools.util.BinaryCodec.readBytesOrFewer(BinaryCodec.java:406)

Caused by: org.broad.igv.exceptions.HttpResponseException: Access forbidden <br> 
at org.broad.igv.util.HttpUtils.openConnection(HttpUtils.java:750)
at org.broad.igv.util.HttpUtils.openConnection(HttpUtils.java:623)



Now here issue is It tried to decode this URL twice & in first attempt it converted %2B to + sign & then in next attempt when loading file it converted + to space.


Pleas let me know if i am doing something wrong here, its issue in the code ?


  

James Robinson

unread,
Jan 20, 2017, 3:12:21 PM1/20/17
to igv-help
Could you attach a jnlp file that I can run as a test (no protected files)?

--

---
You received this message because you are subscribed to the Google Groups "igv-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to igv-help+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/igv-help/c08b6a44-8af4-4cff-bfc9-c49d78a63012%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

James Robinson

unread,
Jan 20, 2017, 3:19:54 PM1/20/17
to igv-help
I think this is what you need  

https%3A%2F%2Fs3.amazonaws.com%2Ffilepath%2Fmain.bam%3FAWSAccessKeyId%3Dwfwfw87fwffqw%26Expires%3D1484944197%26Signature%3D%252ByaTBb90oJRltCWMnvCoXArq3Pk%253D

But again I would like to see the jnlp

pa...@pieriandx.com

unread,
Jan 20, 2017, 5:11:18 PM1/20/17
to igv-help
PFA jnlp file with which i am able to reproduce the issue .

To unsubscribe from this group and stop receiving emails from it, send an email to igv-help+u...@googlegroups.com.
igv_issue.jnlp

James Robinson

unread,
Jan 20, 2017, 5:23:38 PM1/20/17
to igv-help
I can't run that (access denied).   Is this URl supposed to be encoded,  or not?  Its confusing with the &amp;,  which I would not expect to see in a URL encoded file.   Could you give me the plain URL to that file (no encoding at all)?

Also,  you can't load a bam index (.bai) file directly.



To unsubscribe from this group and stop receiving emails from it, send an email to igv-help+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/igv-help/a9c329f5-74b3-43e9-a99a-4e8053619029%40googlegroups.com.

pa...@pieriandx.com

unread,
Jan 20, 2017, 7:12:23 PM1/20/17
to igv-help

James Robinson

unread,
Jan 20, 2017, 8:36:58 PM1/20/17
to igv-help
Did you try these?  

https%3A%2F%2Fpdx-pavan.s3.amazonaws.com%2FIGV_Bug%2Fmain.clean.bam%3FAWSAccessKeyId%3DAKIAIK4GP43NHLYBC6LQ%26Expires%3D1493597268%26Signature%3Dy4BE9a%252BiCEave81BbC%252BqfZibhEg%253D

https%3A%2F%2Fpdx-pavan.s3.amazonaws.com%2FIGV_Bug%2Fmain.clean.bai%3FAWSAccessKeyId%3DAKIAIK4GP43NHLYBC6LQ%26Expires%3D1493597141%26Signature%3Drj9Tf0v0BTRqbyI%252Bwfq3DsSECJ0%253D

You can pass an index file, but only if preceded by the option flag



To unsubscribe from this group and stop receiving emails from it, send an email to igv-help+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/igv-help/daa72e92-6cf2-45f7-a439-ba3f8e322394%40googlegroups.com.

pa...@pieriandx.com

unread,
Jan 20, 2017, 9:29:43 PM1/20/17
to igv-help
Still not working.

PFA log file & JNLP file for same.

Can you also please let me know how can i specify options for giving index file URL, smaple jnl arument block might help me in this.
igv_issue.jnlp
igv.log

James Robinson

unread,
Jan 20, 2017, 10:24:36 PM1/20/17
to igv-help
OK, there were 2 problems.  An igv bug,  and your paths still were not correct.    See the paths I suggested earlier,  or just see the attached jnlp.   Just url encode the paths, don't use  "&amp;".


The igv bug was with the index file, it was not being url decoded.   I have pushed a fix,  you will need to pull the latest from the v2.3x branch or wait for release 2.3.91.   Apparently you are the first to try this with a URL requiring decoding, or the first to report the error anyway.

Finally, its chr23 not Chr23.   Other than that, and the file paths, the jnlp was correct.


igv_issue.jnlp

pa...@pieriandx.com

unread,
Jan 23, 2017, 10:34:56 AM1/23/17
to igv-help
Thanks a lot for quick fix. I will try this out.
Reply all
Reply to author
Forward
0 new messages