Artifactory: Invoke-Webrequest returns invalid data

JFrog Support
2021-08-30 19:06

Use Case:
Invalid data returned when using a web client to fetch data from Artifactory.

Result:
Native browser redirect prevents windows Power Shell (Invoke-WebRequest command) from downloading a file. Instead of fetching artifact, a page (html) is returned instead.

Solution:
1. Set the flag below to false at –artifactory.redirect.native.browser.requests.to.ui=false, By default this value is located in:
$JFROG_HOME/artifactory/var/etc/artifactory/artifactory.system.properties

Please do well to verify this is a test environment and if the issue persists, open a ticket and attach the support bundle.

2. This issue has been noted and addressed in newer versions of Artifactory so upgrading addresses this as well.