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

Last modified not updated in yum hosted repo after migration from Orient to H2

    Details

    • Story Points:
      3
    • Sprint:
      NXRM Immortals Sprint 33, NXRM Immortals Sprint 34, NXRM Immortals Sprint 35, NXRM Immortals Sprint 36, NXRM Sentinels Sprint 52
    • Notability:
      2

      Description

      Issue:

      Customer reported yum-proxy remote to yum-hosted repo is not picking up yum metadata update (repomd.xml) after yum metadata is rebuilt on yum-hosted after uploading new component. 

      Based on analysis, it appeared the Last-Modified date is preserved and never get updated after DB migrate from Orient to H2.

       

      Steps on 3.37.3-02

      1. Create yum-hosted repo and upload few assets and ensure metadata are automated generated
      2. Migrate orient to H2 with nexus-db-migrator-3.37.0-01.jar
      3. Start nexus and upload asset to yum-hosted repo
      4. After metadata rebuild is done (2022-05-02 09:25:24,941-0600), download the repomd.xml from yum-hosted repo with curl
      5. curl -v -u admin:admin123 -O "http://localhost:8081/repository/yum-ng-staging/EnterpriseSoftwareProducts/el7/repodata/repomd.xml"
        

      Expected

      Last-Modified date should be match with the metadata rebuild date (2022-05-02 09:25:24,941-0600)

       

      Actual

      Last-Modified: Fri, 29 Apr 2022 21:11:33 GMT

      Also notice the content of  file is updated correctly, but last_modified (2022-04-29T15:11:33.008-06:00) for repomd.xml from UI is not updated as well

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            denisec Denise Chang
            CC:
            John Doyle
            Last Updated By:
            Vijay Swaminathan Vijay Swaminathan
            Team:
            NXRM - Sentinels
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title