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.

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.