Install mongodb-org rpm through Artifactory remote repository fails


I am trying to install mongodb-org rpm on a host with no internet access through an Artifactory remote yum repository.

yum install mongodb-org

Which produces the following error.

Downloading Packages:
[MIRROR] mongodb-org-4.4.18-1.el7.x86_64.rpm: Curl error (28): Timeout was reached for [Connection timed out after 30000 milliseconds]

The error tells us that yum is trying to get out over the internet to rather than pulling files from Artifactory. This behaviour changed between v4.3 and v4.4 on the mongo repository.



Suspected cause
An xml:base attribute was added to the repo metadata in v4.4. You can see the change on line 14 of primary.xml.gz.

curl -s | zless | head -n14 | tail -n1
  <location href="RPMS/mongodb-cli-0.2.0.latest.x86_64.rpm"/>

curl -s | zless | head -n14 | tail -n1
  <location xml:base="" href="RPMS/mongodb-atlas-1.1.4.x86_64.rpm"/>

I have been unable to find any yum or Artifactory setting that would help. And advice would be appreciated.