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

AQL with .include("*", "property.*") returns each property as a separated item

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.11.1
    • Component/s: AQL
    • Labels:
      None
    • Regression:
      Yes

      Description

      Until Artifactory version 4.8.1 the .include("", "property.") returned the item with a list of properties. From Artifactory 4.8.1 if the item has a few properties, then the same query returns each property as separated item:

      This query:

      items.find({
      "repo" : { "$eq" : "clean" },
      "path": { "$eq" : "jenkins" },
      "name": { "$match" : "*-api.jar"}
      }).include("*", "property.*")
      

      Until 4.8.1:

      {
      "results" : [ {
        "repo" : "clean",
        "path" : "jenkins",
        "name" : "el-api.jar",
        "type" : "file",
        "size" : 23249,
        "created" : "2016-07-29T18:15:40.476+03:00",
        "created_by" : "admin",
        "modified" : "2016-07-29T18:15:33.000+03:00",
        "modified_by" : "admin",
        "updated" : "2016-07-29T18:15:33.000+03:00",
        "depth" : 2,
        "actual_md5" : "a283a51f5b239ff2943484087e0c4340",
        "actual_sha1" : "e1fb63a24afbd737336b4849cf12f34144b29058",
        "original_md5" : "NO_ORIG",
        "original_sha1" : "NO_ORIG",
        "properties" : [ {
          "key" : "d1",
          "value" : "1"
        }, {
          "key" : "d2",
          "value" : "2"
        } ]
      } ],
      "range" : {
        "start_pos" : 0,
        "end_pos" : 1,
        "total" : 1
      }
      }
      

      From Artifactory 4.8.1:

      {
      "results" : [ {
        "repo" : "clean",
        "path" : "jenkins",
        "name" : "el-api.jar",
        "type" : "file",
        "size" : 23249,
        "created" : "2016-07-29T18:20:53.323+03:00",
        "created_by" : "admin",
        "modified" : "2016-07-29T18:20:48.000+03:00",
        "modified_by" : "admin",
        "updated" : "2016-07-29T18:20:48.000+03:00",
        "depth" : 2,
        "actual_md5" : "a283a51f5b239ff2943484087e0c4340",
        "actual_sha1" : "e1fb63a24afbd737336b4849cf12f34144b29058",
        "original_md5" : "NO_ORIG",
        "original_sha1" : "NO_ORIG",
        "properties" : [ {
          "key" : "d1",
          "value" : "1"
        } ],
        "virtual_repos" : [ ]
      },{
        "repo" : "clean",
        "path" : "jenkins",
        "name" : "el-api.jar",
        "type" : "file",
        "size" : 23249,
        "created" : "2016-07-29T18:20:53.323+03:00",
        "created_by" : "admin",
        "modified" : "2016-07-29T18:20:48.000+03:00",
        "modified_by" : "admin",
        "updated" : "2016-07-29T18:20:48.000+03:00",
        "depth" : 2,
        "actual_md5" : "a283a51f5b239ff2943484087e0c4340",
        "actual_sha1" : "e1fb63a24afbd737336b4849cf12f34144b29058",
        "original_md5" : "NO_ORIG",
        "original_sha1" : "NO_ORIG",
        "properties" : [ {
          "key" : "d2",
          "value" : "2"
        } ],
        "virtual_repos" : [ ]
      } ],
      "range" : {
        "start_pos" : 0,
        "end_pos" : 2,
        "total" : 2
      }
      }
      

        Attachments

          Activity

            People

            • Assignee:
              yinona Yinon Avraham
              Reporter:
              alexeiv Alexei Vainshtein
              Assigned QA:
              Yogev Abergel (Inactive)
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: