-
Type:
Improvement
-
Status: Done
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 7.10.1
-
Component/s: None
-
Labels:None
Currently, when merging the remote 'index.yaml' in the virtual repository (from the remotes and locals that are aggregated inside it), Artifactory compares the remote URL as a string to the URL's configured in the 'index.yaml' file, and if it finds URL's that match it replaces them with Artifactory's URL.
This can cause issues when the remote URL is configured as HTTPS and in the 'index.yaml' file the URL's are configured with HTTP.
Since Artifactory compares the URL's as a string, it will not find any match (since in the 'index.yaml' the URL's start with HTTP and we are searching for HTTPS), and will not replace the URL's in the 'index.yaml'.
As a workaround, we can change the remote URL to HTTP.
We can improve this by implementing a regex that will search for either HTTP or HTTPS at the start of the URL and replace the URL if it finds a match to either of them.