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

pushing NuGet packages larger than 2GB fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.1
    • Component/s: Database, NuGet
    • Labels:
      None
    • Story Points:
      2
    • Sprint:
      Sprint 71

      Description

      Push of a very large NuGet package fails. This one is about 2.5Gb:

      $ ls -l
      total 5734448
      rw-rr- 1 rseddon staff 2935807073 May 26 14:13 NUnit.2.6.3.nupkg

      This fails due to a number format error trying to convert the string to an integer:

      2016-05-26 14:19:08,814-0500 DEBUG [qtp1378640751-359] admin com.sonatype.nexus.repository.nuget.internal.NugetGalleryFacetImpl - Creating NuGet component NUnit v. 2.6.3
      2016-05-26 14:19:08,815-0500 DEBUG [qtp1378640751-359] admin com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - {db=component} Read record #9:0 v.1 size=33 bytes
      2016-05-26 14:19:08,985-0500 DEBUG [qtp1378640751-359] admin com.sonatype.nexus.repository.nuget.internal.NugetPushHandler - Bad argument
      java.lang.NumberFormatException: For input string: "2935807073"
          at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) [na:1.8.0_60]
          at java.lang.Integer.parseInt(Integer.java:583) [na:1.8.0_60]
          at java.lang.Integer.parseInt(Integer.java:615) [na:1.8.0_60]
          at com.sonatype.nexus.repository.nuget.internal.NugetGalleryFacetImpl.updateAssetMetadata(NugetGalleryFacetImpl.java:460) [na:na]
          at com.sonatype.nexus.repository.nuget.internal.NugetGalleryFacetImpl.createOrUpdateAssetAndContents(NugetGalleryFacetImpl.java:589) [na:na]
          at com.sonatype.nexus.repository.nuget.internal.NugetGalleryFacetImpl.createOrUpdatePackageAndContents(NugetGalleryFacetImpl.java:435) [na:na]
          at org.sonatype.nexus.transaction.TransactionalWrapper.proceedWithTransaction(TransactionalWrapper.java:54) [org.sonatype.nexus.transaction:3.0.0.03]
          at org.sonatype.nexus.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:53) [org.sonatype.nexus.transaction:3.0.0.03]
          at com.sonatype.nexus.repository.nuget.internal.NugetGalleryFacetImpl.put(NugetGalleryFacetImpl.java:350) [na:na]
          at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39) [org.sonatype.nexus.common:3.0.0.03]
          at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:270) [org.sonatype.nexus.common:3.0.0.03]
          at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:53) [org.sonatype.nexus.common:3.0.0.03]
          at com.sonatype.nexus.repository.nuget.internal.NugetPushHandler.storePayload(NugetPushHandler.java:79) [na:na]
          at com.sonatype.nexus.repository.nuget.internal.NugetPushHandler.push(NugetPushHandler.java:66) [na:na]
          at com.sonatype.nexus.repository.nuget.internal.NugetPushHandler.handle(NugetPushHandler.java:48) [na:na]
          at org.sonatype.nexus.repository.view.Context.proceed(Context.java:79) [org.sonatype.nexus.repository:3.0.0.03]
          at org.sonatype.nexus.repository.storage.UnitOfWorkHandler.handle(UnitOfWorkHandler.java:39) [org.sonatype.nexus.repository:3.0.0.03]
          at org.sonatype.nexus.repository.view.Context.proceed(Context.java:79) [org.sonatype.nexus.repository:3.0.0.03]
          at org.sonatype.nexus.repository.view.handlers.ExceptionHandler.handle(ExceptionHandler.java:41) [org.sonatype.nexus.repository:3.0.0.03]
          at org.sonatype.nexus.repository.view.Context.proceed(Context.java:79) [org.sonatype.nexus.repository:3.0.0.03]
          at org.sonatype.nexus.repository.security.SecurityHandler.handle(SecurityHandler.java:45) [org.sonatype.nexus.repository:3.0.0.03]
          at org.sonatype.nexus.repository.view.Context.proceed(Context.java:79) [org.sonatype.nexus.repository:3.0.0.03]
          at org.sonatype.nexus.repository.view.handlers.TimingHandler.handle(TimingHandler.java:46) [org.sonatype.nexus.repository:3.0.0.03]
          at org.sonatype.nexus.repository.view.Context.proceed(Context.java:79) [org.sonatype.nexus.repository:3.0.0.03]
          at org.sonatype.nexus.repository.view.Context.start(Context.java:102) [org.sonatype.nexus.repository:3.0.0.03]
          at org.sonatype.nexus.repository.view.Router.dispatch(Router.java:58) [org.sonatype.nexus.repository:3.0.0.03]
          at org.sonatype.nexus.repository.view.ConfigurableViewFacet.dispatch(ConfigurableViewFacet.java:43) [org.sonatype.nexus.repository:3.0.0.03]
          at org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.dispatchAndSend(ViewServlet.java:198) [org.sonatype.nexus.plugins.nexus-repository-httpbridge:3.0.0.03]
          at org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.doService(ViewServlet.java:160) [org.sonatype.nexus.plugins.nexus-repository-httpbridge:3.0.0.03]
          at org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.service(ViewServlet.java:117) [org.sonatype.nexus.plugins.nexus-repository-httpbridge:3.0.0.03]
      

        Attachments

          Activity

            People

            Assignee:
            dbradicich Damian Bradicich
            Reporter:
            rseddon Rich Seddon
            Last Updated By:
            Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title