Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add follow redirect in querying TRSS #555

Closed
llxia opened this issue May 28, 2024 · 2 comments · Fixed by #556
Closed

Add follow redirect in querying TRSS #555

llxia opened this issue May 28, 2024 · 2 comments · Fixed by #556

Comments

@llxia
Copy link
Contributor

llxia commented May 28, 2024

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

@llxia
Copy link
Contributor Author

llxia commented May 28, 2024

@annaibm could you add -L? Thanks

@llxia
Copy link
Contributor Author

llxia commented May 28, 2024

Please test at both internal and Adoptium.

annaibm added a commit to annaibm/TKG that referenced this issue May 28, 2024
- Added `-L` to support http TRSS URL.

resolves: adoptium#555

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/TKG that referenced this issue May 29, 2024
- Added `-L` to support http TRSS URL.

resolves: adoptium#555

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant