A bug in tFilefetch component?

Highlighted
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.

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 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog