A bug in tFilefetch component?

One Star

A bug in tFilefetch component?

Hi: it looks like we have some bugs in tFileFetch component when we try to use the component for http get with some query string and if we leave the destination file name empty, that makes the component fail to download the file. When I got deep into the code I found this line is the culprit
java.net.URL url_tFileFetch_1 = new java.net.URL(
"http://clinicaltrials.gov/ct2/results/download?down_stds=all&down_typ=study&down_flds=shown&down_fmt...");
In this case it will never return the file name (see the sun java doc for more info http://java.sun.com/j2se/1.5.0/docs/api/java/net/URL.html#getFile%28%29), but the full path with query string and when we try to use the returned string as file name it blows the file I/O code.
Regards,
RJ.

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download