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

PACKAGES.gz contains incorrect information

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.22.0
    • Fix Version/s: None
    • Component/s: R

      Description

      In the new R repository format, it looks like there are two problems with the package index.

      1. The version exposed in the "PACKAGES.gz" file isn't the newest version, which results in clients installing it instead of the newest version.
      2. The path to the artifact is reported incorrectly, (at least in some cases).

      Example:

      % curl -s --netrc https://nexus-test.example.com/repository/example-repo/src/contrib/PACKAGES.gz | gzcat | head -n20
      Package: AMGUtils
      Type: Package
      Version: 0.67
      Title: Utility functions for various purposes
      Author: Applied Math Group at WindLogics
      Maintainer: Ken Williams <kwilliams@example.com>
      Copyright: inst/COPYRIGHTS
      Depends: R (>= 1.14.0)
      Imports: FNN, ggplot2, lubridate (>= 1.3.0), parallel, R.utils, Rcpp
              (>= 0.10.2), stringr, testthat, zoo, tools
      License: Restricted
      Description: Various functions that various people in the Applied Math
              Group have written for various purposes at various times over
              the course of various projects.
      LinkingTo: Rcpp
      RoxygenNote: 5.0.1
      NeedsCompilation: yes
      Packaged: 2017-03-08 23:01:08 UTC; bamboo
      MD5sum: 9b286b16ec0726a729ecd880e2b9a093
      Path: ./AMGUtils 

      The two problems with that are:

      1. the versions of `AMGUtils` in our repo range from `AMGUtils_0.5.27.tar.gz` to `AMGUtils_0.71.tar.gz`, I'm not sure why 0.67 was considered special enough to single out for indexing in the PACKAGE.gz file, but 0.71 should be there instead.
      2. the `Path: ./AMGUtils` entry indicates that the package should be downloaded from https://nexus-test.example.com/repository/example-repo/src/contrib/./AMGUtils/AMGUtils_0.67.tar.gz , but the file is actually accessible at https://nexus-test.example.com/repository/example-repo/src/contrib/AMGUtils_0.67.tar.gz , as I've verified both by downloading it from that path, and seeing (in a shell on the server) that its `properties` file has the entry `@BlobStore.blob-name=src/contrib/AMGUtils_0.67.tar.gz`.

      What can we do to correct this?  Reindexing didn't seem to fix it.

      We upgraded from an older version of Nexus where we were using the R plugin, if that matters.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              kenahoo Ken Williams
              Last Updated By:
              Joe Tom Joe Tom
              Team:
              NXRM - Mad Max
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Date of First Response:

                  tigCommentSecurity.panel-title