Install mongodb-org rpm through Artifactory remote repository fails

Hi,

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 https://repo.mongodb.org/yum/redhat/7Server/mongodb-org/4.4/x86_64/RPMS/mongodb-org-4.4.18-1.el7.x86_64.rpm [Connection timed out after 30000 milliseconds]

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

Config

[mongodb]
name=MongoDB
baseurl=https://artifactory.myorg/artifactory/mongodb/redhat/7Server/mongodb-org/4.4/x86_64/
gpgcheck=0
enabled=1

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 https://repo.mongodb.org/yum/redhat/7Server/mongodb-org/4.3/x86_64/repodata/d5a853dc5155397490202c1b192c838e50dcbf15-primary.xml.gz | zless | head -n14 | tail -n1
  <location href="RPMS/mongodb-cli-0.2.0.latest.x86_64.rpm"/>

curl -s https://repo.mongodb.org/yum/redhat/7Server/mongodb-org/4.4/x86_64/repodata/primary.xml.gz | zless | head -n14 | tail -n1
  <location xml:base="https://repo.mongodb.org/yum/redhat/7Server/mongodb-org/4.4/x86_64" 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.

Thanks