Being not able to download from an RPM repository, due to corruption of the index files.
Re-calculation of the Index doesn't work.
Delete the entire repodata directory, and then re-index.
The repomd.xml file has references to un-existing primary/filelists/other files.
once re-calculation is triggered, it generates new index files, which are being immediately deleted, as Artifactory thinks they are the oldest ones.
There seems to be a bug with the comparator, and this is experienced when there is a big difference between the "last modified" time of the old files and the time of the re-calculation.
This will usually be encountered when using a repository that wasn't used for a few months.