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

Querying folders based on properties using AQL is fails when the permission's "Include Patterns" is effective

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 7.38.6
    • Fix Version/s: None
    • Component/s: AQL, Artifactory
    • Labels:
      None
    • Environment:

      Centos 7

    • Severity:
      High
    • Location:
      External

      Description

      Problem description: Querying folders based on properties using AQL is fails when the permission's "Include Patterns" is effective
       
      When the permission's "Include Patterns" is effective for a Non-admin user to a repository, and there are some properties on the folders, we should be able to query folders based on properties using AQL, not just display it on the UI.
       
      Steps to reproduce:
      Artifactory v7.38.10
      1. Create a No-admin user named "testuser1";
      2. Create a Permission named "test", includes a repository such as "generic-local" and set "Include Patterns" with "**/.tgz*", then select user "testuser1" with "Read" permission;
      3. Deploy artifact "test.tgz" to "generic-local/test1/test.tgz";
      4. Set property "version=1" to artifact "test.tgz" and folder "test1";
      5. Now, query folder "test1" based on properties "version" using AQL by user "testuser1" is failed. Using command:
      "curl -u*testuser1*:password -H 'Content-Type: text/plain' -X POST 'http://192.168.56.11:8082/artifactory/api/search/aql' -d 'items.find({"repo":"generic-local", "type":"folder", "@version":"*"})'"
      6. But we can see the property on folder "test1" on UI, and if using user "admin" or setting the "Include Patterns" with "***", it is able to query folder "*test1".

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              guoyz Yun Zong Guo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Sync Status

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