Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--include does seem not work with some AQL properties #2825

Open
asreich opened this issue Jan 9, 2025 · 0 comments
Open

--include does seem not work with some AQL properties #2825

asreich opened this issue Jan 9, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@asreich
Copy link

asreich commented Jan 9, 2025

Describe the bug

I've been attempting to use both an AQL spec file and the --include argument to get my searches to return some of the stat keys like in this example, which I can't get to work in the spec file either. It seems like this was first identified in #320 and an MR (#1948) was filed but I'm not sure it 100% addressed it based on comments after the issue was closed and my own experience. Please let me know if you need anything else from me.

  --include                 [Optional] List of semicolon-separated(;) fields in the form of "value1;value2;...". Only the path and the fields that are specified will be returned. The fields must be part of the 'items' AQL domain. For the full supported items list, check https://jfrog.com/help/r/jfrog-artifactory-documentation/artifactory-query-language

Current behavior

jf rt s 'local-repo-here' --include stat.downloads does not work as expected and returns almost nothing besides the path

  {
    "path": "maven-artifacts-local/org/springframework/cloud/spring-cloud-starter/2.1.0.RC2/spring-cloud-starter-2.1.0.RC2.jar",
    "props": {
      "artifactory.internal.etag": [
        "<snipping-because-i-don't-know-if-this-is-sensitive"
      ]
    }
  },
  {
    "path": "maven-artifacts-local/org/springframework/cloud/spring-cloud-starter/maven-metadata.xml"
  },

It only works with all of the item fields listed here

Reproduction steps

jf rt s 'local-repo-here' --include stat.downloads, see it doesn't return the expected field from the stat domain

jf rt s 'local-repo-here' --include sha256, see it returns the item domain field as expected

Expected behavior

As described in this example, I'd like to add information from the stat field to the search output.

JFrog CLI version

2.73.0

Operating system type and version

macoS 15.1.1

JFrog Artifactory version

No response

JFrog Xray version

No response

@asreich asreich added the bug Something isn't working label Jan 9, 2025
@asreich asreich changed the title --include does seem to add/remove/change properties that are returned --include does seem not work with some AQL properties Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant