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

npm packages cannot be migrated due to IllegalStateException PackageVersion expected when contained in a rebuilt hosted repository

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.14.1
    • Fix Version/s: 2.14.2
    • Component/s: Migration
    • Labels:

      Description

      Trying to migrate a npm repo from 2.14.1 to 3.1.

      Error at Nexus 3.1 is

      2016-11-15 10:24:30,150+1100 WARN [plan-executor-4-thread-3] admin com.sonatype.nexus.migration.repository.ProcessChangesStep - Process changes failed
      javax.ws.rs.InternalServerErrorException: HTTP 500 Internal Server Error
      

      Error at Nexus 2.14.1 is

      2016-11-15 10:24:30 WARN [qtp625399792-185] *UNKNOWN org.sonatype.sisu.siesta.server.internal.mappers.ThrowableExceptionMapper - java.lang.IllegalStateException: PackageVersion expected for npm tarball /auspost-array-includes/-/auspost-array-includes-1.0.0.tgz
      java.lang.IllegalStateException: PackageVersion expected for npm tarball /auspost-array-includes/-/auspost-array-includes-1.0.0.tgz
      at com.google.common.base.Preconditions.checkState(Preconditions.java:200) ~[guava-16.0.1.jar:na]
      at com.sonatype.nexus.migrationagent.repository.migrators.NpmRepositoryMigrator.findVersion(NpmRepositoryMigrator.java:85) ~[na:na]
      at com.sonatype.nexus.migrationagent.repository.migrators.NpmRepositoryMigrator.extract(NpmRepositoryMigrator.java:63) ~[na:na]
      at com.sonatype.nexus.migrationagent.repository.RepositoryMigratorSupport.extract(RepositoryMigratorSupport.java:248) ~[na:na]
      at com.sonatype.nexus.migrationagent.repository.RepositoryMigrator$extract.call(Unknown Source) ~[na:na]
      

        Attachments

        1. npm.tar.gz
          108.37 MB
        2. npm-internal.tar.gz
          18 kB

          Issue Links

            Activity

              People

              Assignee:
              ecobb Eric Cobb
              Reporter:
              davedeanddc David Dean
              Last Updated By:
              Peter Lynch
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title