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

Yum Hosted Recipe should not add the negative cache handler

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.9.0
    • 3.8.0
    • Yum
    • None
    • 1

    Description

      If the yum hosted metadata is fetched before it is generated then a 404 will be returned. Because the negative cache handler has been incorrectly implemented on hosted the 404 will still be returned after the metadata has been generate. This is true for RPMs as well (fetched before upload and fetched after upload). There is no way to clear the negative cache without waiting for it to expire or restarting the server.

      The Yum hosted recipe is adding the NegativeCacheHandler (i.e. https://github.com/sonatype/nexus-internal/blob/30c875f80f2406800b8ec37cc618bee0cfd47897/private/plugins/nexus-repository-yum/src/main/java/org/sonatype/nexus/repository/yum/internal/hosted/YumHostedRecipe.groovy#L90)  

       

      Attachments

        Activity

          People

            jstephens Joseph Stephens
            jstephens Joseph Stephens
            Peter Lynch Peter Lynch
            Nexus - Formats
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              tigCommentSecurity.panel-title