adoptium/TKG

Add follow redirect in querying TRSS

Closed this issue · 2 comments

In TKG, it queries TRSS

String command = "curl --silent --max-time 120 " + URL;

TRSS is changed from http to https. -L needs to be added to support http TRSS URL.

reference: https://www.warp.dev/terminus/curl-follow-redirect#:~:text=To%20make%20curl%20follow%20a%20redirect%20and%20get%20the%20requested,the%20server%20processed%20their%20request.

00:02:39.616  curl --silent --max-time 120 http://trssrtp1.fyre.ibm.com/api/getTestAvgDuration?limit=10&jdkVersion=11&impl=j9&platform=ppc64_aix&group=functional&level=sanity
00:02:39.616  Warning: cannot parse data from TRSS.

internal link

@annaibm could you add -L? Thanks

Please test at both internal and Adoptium.