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

jFrog CLI AQL search on stats domain fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Unresolved
    • Affects Version/s: 6.8.3
    • Fix Version/s: None
    • Component/s: AQL
    • Labels:
    • Severity:
      Medium

      Description

      A jFrog CLI search with the following .spec file:

      {
       "files":[
       {
       "aql": {
         "stats.find": { 
         "downloaded": { "$gt" : "2019-03-06" } 
         }
       }
       }
       ]
      }

      is strangely translated to this, incorrect, request in the items domain, instead of the expected stats domain:

      is strangely translated to:

      jfrog rt search --server-id my_server_id --spec file.spec
       [Info] Searching artifacts...
       [Error] Artifactory response: 400 Bad Request
       Failed to parse query: items.find({
       "downloaded":
      { "$gt" : "2019-03-06" }
      }
       ).include("name","repo","path","actual_md5","actual_sha1","size","type","property"), it looks like there is syntax error near the following sub-query: downloaded":
      { "$gt" : "2019-03-06" }
      }
       ).include("name","repo","path","actual_md5","actual_sha1","size","type","property")
      

       

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              PatG Patrice GODARD
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Sync Status

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