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

AQL - builds.find queries should exclude trash can items

    Details

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

      Description

      The below query:
      builds.find(

      {"name": "plugin-demo-2"}

      ,

      {"number": "5"}

      ).include("module.artifact.item.name", "module.artifact.item.path")

      Will return item results from the trash can too.

      To reproduce:
      1.Build something into artifactory
      2.delete some or all of the build artifacts
      3.Execute the query, you'll see that items that have been deleted are present in the result set

      As a workaround you can filter the auto-trashcan repo:

      builds.find(

      {"name": "plugin-demo-2"}

      ,

      {"number": "5"}

      ,
      {"module.artifact.item.repo": { "$ne": "auto-trashcan"}}
      ).include("module.artifact.item.name", "module.artifact.item.path")

        Attachments

          Activity

            People

            • Assignee:
              uriahl Uriah Levy
              Reporter:
              uriahl Uriah Levy
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: