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

Artifactory does not validate metadata in the $ART_HOME/data/.cache

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Debian
    • Labels:

      Description

      Symptoms: The Debian "Packages" file contains only the checksum and filepath, but not the actual Debian metadata information.

       

      Steps to reproduce:

      1. Have a local Debian repository with valid packages and metadata
      2. Navigate to $ARTIFACTORY_HOME/data/.cache/debian/<Path_to_deb>/
      3. Remove the *.deb file 
        It is a text file containing the Debian package metadata for faster recalculation speeds
      4. Touch a new, empty *.deb file with the exact same filename
      5. Download the Packages file
      6. Recalculate Debian indexes
      7. Re-download the Packages file
      8. Observe that the new Packages file does not contain required Debian information

      Artifactory should validate its debian cache or produce an error when processing 0 byte files. Currently the workaround is to clear the repository folder within the .cache/debian directory.

      (Working .cache)

      ./pool/main/x/x11-xserver-utils-lts-quantal:
      total 4
      rw-r---- 1 root root 2207 Mar 12 18:58 x11-xserver-utils-lts-quantal_7.7~3ubuntu1~precise1_amd64.deb

       

      (Broken .cache)
      ./debian/debian-local/pool/main/x/x11-xserver-utils-lts-quantal:
      total 0
      rw-rr- 1 root root 0 Mar 12 19:19 x11-xserver-utils-lts-quantal_7.7~3ubuntu1~precise1_amd64.deb

       

      (Working Packages file)

      Package: x11-xserver-utils-lts-quantal
      Version: 7.7~3ubuntu1~precise1
      Architecture: amd64
      Maintainer: Ubuntu X-SWAT <ubuntu-x@lists.ubuntu.com>
      Installed-Size: 156
      Depends: libc6 (>= 2.14), libx11-6, libxrandr-ltsq2 (>= 2:1.4.0), cpp, x11-xserver-utils (>= 0~)
      Suggests: nickle, cairo-5c, xorg-docs-core
      Conflicts: iceauth, sessreg, x11-xserver-utils-renamed, xgamma, xhost, xmodmap, xrandr, xrdb, xrefresh, xrgb, xset, xsetmode, xsetpointer, xsetroot, xstdcmap, xvidtune
      Replaces: iceauth, sessreg, xbase-clients (<< 1:7.3), xgamma, xhost, xmodmap, xrandr, xrdb, xrefresh, xrgb, xset, xsetmode, xsetpointer, xsetroot, xstdcmap, xutils (<< 1:7.2), xvidtune
      Provides: x11-xserver-utils-renamed, xorg-renamed-package, xorg-renamed-package-lts-quantal
      Section: x11
      Priority: optional
      Description: X server utilities
      An X client is a program that interfaces with an X server (almost always via
      the X libraries), and thus with some input and output hardware like a
      graphics card, monitor, keyboard, and pointing device (such as a mouse).
      .
      This package provides a miscellaneous assortment of X Server utilities
      that ship with the X Window System, including:

      • iceauth, a tool for manipulating ICE protocol authorization records;
      • rgb;
      • sessreg, a simple program for managing utmp/wtmp entries;
      • xcmsdb, a device color characteristic utility for the X Color Management
        System;
      • xgamma, a tool for querying and setting a monitor's gamma correction;
      • xhost, a very dangerous program that you should never use;
      • xmodmap, a utility for modifying keymaps and pointer button mappings in X;
      • xrandr, a command-line interface to the RandR extension;
      • xrdb, a tool to manage the X server resource database;
      • xrefresh, a tool that forces a redraw of the X screen;
      • xset, a tool for setting miscellaneous X server parameters;
      • xsetmode and xsetpointer, tools for handling X Input devices;
      • xsetroot, a tool for tailoring the appearance of the root window;
      • xstdcmap, a utility to selectively define standard colormap properties;
      • xvidtune, a tool for customizing X server modelines for your monitor.
        Original-Maintainer: Debian X Strike Force <debian-x@lists.debian.org>
        Filename: pool/main/x/x11-xserver-utils-lts-quantal/x11-xserver-utils-lts-quantal_7.7~3ubuntu1~precise1_amd64.deb
        SHA1: 3dcd7585fb0c4f2bfda874e771ae2e495e953501
        SHA256: 6a373d183cd2ed5a087a0bfa3a99fe187d3873f80ada8e95041c4f25486800e5
        Size: 38270

      (Broken Packages file)

      Filename: pool/main/x/x11-xserver-utils-lts-quantal/x11-xserver-utils-lts-quantal_7.7~3ubuntu1~precise1_amd64.deb
      SHA1: 3dcd7585fb0c4f2bfda874e771ae2e495e953501
      SHA256: 6a373d183cd2ed5a087a0bfa3a99fe187d3873f80ada8e95041c4f25486800e5
      Size: 38270

       

       

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              patrickr Patrick Russell
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: