ARTIFACTORY: How to Fix a Corrupted 'URL to File' Value

ARTIFACTORY: How to Fix a Corrupted 'URL to File' Value

AuthorFullName__c
Sam Rosenstein
articleNumber
000005408
ft:sourceType
Salesforce
FirstPublishedDate
2022-09-14T15:37:43Z
lastModifiedDate
2022-09-14
VersionNumber
2

Each artifact stored in Artifactory contains a list of general information. One of these items is the ‘URL to file’ property which is the URL pointing to the file location. The value of this URL stems from the Artifactory custom base URL

In certain cases, the value of the ‘URL to file’ value can become corrupted due to misconfiguration on the reverse proxy side of things. For example, the value may have the following format:

  • http://:443/reponame/path/to/file
  • http:///reponame/path/to/file

In order to solve this, we need to ensure that the reverse proxy correctly bases the base URL to Artifactory. Please see the following for examples of this for both Apache and NGINX.