Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-20460

Debian package with no control file breaks metadata

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: 7.0.0, 6.17.0
    • Fix Version/s: None
    • Component/s: Debian
    • Labels:
      None
    • Severity:
      Medium
    • Regression:
      Yes

      Description

      Steps tp reproduce:

      $ wget -q http://localhost:80081/artifactory/debian-local/pool/p/my-candidate/my-candidate_1.123_all.deb
      $ candidate_name=my-candidate
      $ release_deb=my-release_1.123_all.deb
      $ release_name=my-release
      $ ar x my-candidate_1.123_all.deb control.tar.gz
      $ tar -zxf ./control.tar.gz ./control
      $ sed -E -e 's/^(Package|Source|Provides|Description): my-candidate/\1: my-release/g' control
      $ cp control.new control
      $ gunzip control.tar.gz
      $ tar --delete -f ./control.tar ./control
      >> Skip this step to reproduce $ tar -rf ./control.tar --owner root --group root ./control
      $ gzip control.tar
      $ cp my-candidate_1.123_all.deb myrelease_1.123_all.deb
      $ ar r my-release_1.123_all.deb control.tar.gz

       

      Results

      Metadata will fail on merge and cause issues:

      apt-get update
      ...
      Reading package lists... Error!
      E: Encountered a section with no Package: header
      E: Problem with MergeList /var/lib/apt/lists/repo.test.myorg.com_artifactory_debian-local_dists_jfrog_main_binary-amd64_Packages
      E: The package lists or status file could not be parsed or opened.

        Attachments

          Issue Links

            Activity

                People

                Assignee:
                andreik Andrei Komarov (Inactive)
                Reporter:
                angellom Angello Maggio
                Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Sync Status

                    Connection: RTFACT Sync
                    RTMID-20460 -
                    SYNCHRONIZED
                    • Last Sync Date: