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

AQL query doesn't distinguish between artifacts with the same checksum but different builds

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: AQL
    • Labels:
      None
    • Severity:
      High

      Description

      I have several artifacts with Artifactory that are identical, and Artifactory optimizes the storage by not storing multiple copies of the same artifact. The artifacts are in the same repository but have different paths, and also are connected to different builds.

      The problem occurs when performing a query about items whose builds have a certain property. The result of the query contains artifacts who are not related at all to query asked. After some digging, I've found that the cause is probably the fact that the unrelated artifacts have the same checksum as those that are related to the build.

      Here is an example query I used:

       

      Setup: Assuming there are two artifacts, "a.jpg" and "b.jpg" that have the same checksum, but "a.jpg" is found in the modules of a build named "foo", and "b.jpg" is found in the modules of a build named "bar".

      The query:
      items.find({"artifact.module.build.name": "foo"})
       
      Will return both "a.jpg" and "b.jpg" as the result.
       

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              BenYohay Ben Yohay
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Sync Status

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