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

Some Debian Packages fail to upload (control.tar.zst)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.30.0, 3.34.0
    • Fix Version/s: 3.38.0
    • Component/s: APT
    • Labels:
    • Environment:
      docker behind proxy
    • Story Points:
      2
    • Sprint:
      NXRM MadMax Sprint 25, NXRM MadMax Sprint 26

      Description

      Hello,

      yes, I  am using the docker container from docker hub.  There error says "java.io.IOException: Invalid debian package: no control file", the file in question  is

      linux-image-unsigned-5.14.1-051401-generic_5.14.1-051401.202109030936_amd64.deb: Debian binary package (format 2.0) 

       

      The Upload command that worked until about version 3.32 is:

       curl --fail -u test:XXXXXXXX -X POST -H "Content-Type: multipart/form-data" --data-binary "@./linux-image-unsigned-5.14.1-
      051401-generic_5.14.1-051401.202109030936_amd64.deb" https://nexus.services.xxxxx:443/repository/crnl-common/ 
      curl: (22) The requested URL returned error: 500

       

      (You can find the package here https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.14.1/ if you like to reproduce)

       

       

      The error from docker compose log:

       

      nexus_1                  | 2021-09-10 12:28:54,533+0000 WARN  [qtp2056042008-81] test org.sonatype.nexus.repository.httpbridge.internal
      .ViewServlet - Failure servicing: POST /repository/crnl-common/
      
      nexus_1                  | java.io.IOException: Invalid debian package: no control file
      
      nexus_1                  |      at org.sonatype.nexus.repository.apt.internal.AptPackageParser.parsePackageInfo(AptPackageParser.java:4
      2)
      
      nexus_1                  |      at org.sonatype.nexus.repository.apt.orient.internal.hosted.OrientAptHostedFacet.ingestAsset(OrientAptH
      ostedFacet.java:102)
      
      
       

      EDIT: I see that the control file is called control.tar.zst - I bet it's now compressed with the ZStd Algo which the Nexus code doesn't unterstand yet. Check out my proposal here: https://github.com/sonatype/nexus-public/pull/90
       
      rgds,

      derjohn

       

        Attachments

          Activity

            People

            Assignee:
            mkalachov Maksym Kalachov [X] (Inactive)
            Reporter:
            derjohn Andreas John
            Last Updated By:
            Joe Tom Joe Tom
            Team:
            NXRM - Mad Max
            Votes:
            9 Vote for this issue
            Watchers:
            9 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title