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

jf rt --search option doesnt work when used with --spec option #2860

Closed
marasCw opened this issue Feb 3, 2025 · 1 comment
Closed

jf rt --search option doesnt work when used with --spec option #2860

marasCw opened this issue Feb 3, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@marasCw
Copy link

marasCw commented Feb 3, 2025

Describe the bug

I want to receive only some fields from aql for jf rt --search. Regardless of what fields I enter into the -- include option, the command always returns a full list of fields in the search results.

Current behavior

[root@s1slt0009438: ~]# jf rt s --spec checksumSearch1.json --include "created"
06:31:05 [🔵Info] Searching artifacts...
06:31:06 [🔵Info] Found 2 artifacts.
[
{
"path": "repo/pathtofile/_DB_39.5.0/wdr_create_banki_test.sql",
"type": "file",
"size": 1378,
"created": "2017-05-22T14:25:51.168+02:00",
"modified": "2017-05-22T14:25:51.152+02:00",
"sha1": "00106920baac99a1ec22b25c400ff344f2f6c9ab",
"sha256": "b72b4fe6b0fb621dac6c85fcb044aad0a9a49f0d209a11c2095b07defb7e2050",
"md5": "1835f8a186a8fd5bb9b91db997d831ed",
"props": {
"COMPONENT": [
"ala_Informix"
],

Reproduction steps

Perform command:
jf rt s --spec <spec.json> --include "aql_field1;aql_field2,aql_field3"

Expected behavior

[root@s1slt0009438: ~]# jf rt s --spec checksumSearch1.json --include "created"
06:31:05 [🔵Info] Searching artifacts...
06:31:06 [🔵Info] Found 2 artifacts.
[
{
"path": "repo/pathtofile/_DB_39.5.0/wdr_create_banki_test.sql",
"created": "2017-05-22T14:25:51.168+02:00"}
},
{
"path": "repo/pathtofile/_DB_39.5.1/aaa.sql",
"created": "2017-06-22T14:25:51.168+02:00"}
},

JFrog CLI version

jf version 2.73.0

Operating system type and version

Red Hat Enterprise Linux release 8.10 (Ootpa)

JFrog Artifactory version

7.98.13 rev 79813900

JFrog Xray version

No response

@marasCw marasCw added the bug Something isn't working label Feb 3, 2025
@RobiNino
Copy link
Contributor

RobiNino commented Feb 3, 2025

Hi @marasCw ,
Thanks for reporting this.
I'm closing it in favor of an older issue.

@RobiNino RobiNino closed this as completed Feb 3, 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

2 participants