Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-30978

Partial metadata generated for empty yum folder/path

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.37.3
    • Fix Version/s: 3.38.0
    • Component/s: Yum
    • Labels:
    • Notability:
      3
    • InvestmentLayer:
      support-escalated

      Description

      When all packages from a given yum folder/path are deleted, Nexus proceeds to regenerate the xml.gz files with references to 0 packages e.g.

      <?xml version="1.0" encoding="UTF-8"?><metadata xmlns="http://linux.duke.edu/metadata/common" xmlns:rpm="http://linux.duke.edu/metadata/rpm" packages="0"></metadata>

      But does not regenerate the repomd.xml file. This leaves the repo in an inconsistent state where only partial metadata exists.

      To reproduce:

      1. Create a yum hosted repo with a depth of 1.

      2. Upload an rpm to this repo.

      3. Wait for the metadata to generate then delete the rpm.

      4. Wait again for the metadata to generate and observe via the browse view that the xml.gz files have been rebuilt, but there is no repomd.xml.

      In this scenario It is expected that Nexus should be consistent i.e. Either generate all the metadata files or none of them.

      Expected Results:

      All Metadata files are removed including repomd.xml

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              hardeepn Hardeep Nagra
              Last Updated By:
              Michael Oliverio Michael Oliverio
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title