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

NPM group metadata does not have the latest version after publishing into a member hosted repository

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.40.1
    • Fix Version/s: None
    • Component/s: NPM
    • Labels:
    • Notability:
      3

      Description

      SYMPTOM:

      Using OrientDB.
      After publishing a new version into a NPM hosted repository, the NPM group repository, which has this NPM hosted as a member, does not show this newly published version in this component's metadata JSON file.

      WORKAROUND:

      Use [ Invalidate cache ] button from the group repository page.
      If above doesn't work, delete the metadata json from the group repository (eg: with a groovy script), so that next request will rebuild this metadata.

      REPRODUCE STEPS:

      See internal comments for an artificial way of reproducing this behaviour.

      EXPECTATION:

      • Nexus should make sure that rebuilding the metadata for necessary NPM group repositories is successful.
      • It is very challenging to troubleshoot when this issue happens, so adding more logging would be helpful.
        For example, current theory is somehow Nexus might not be invalidating the npm cache in com.sonatype.nexus.repository.npm.internal.orient.OrientNpmGroupDataFacet#on, so it would be helpful if we had some logging when matchingEvent(updated) = true but hasBlobBeenUpdated(updated) = false with some reason.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              hosako Hajime Osako
              Last Updated By:
              Rich Seddon Rich Seddon
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title