Skip to content

Conversation

@agrasth
Copy link
Contributor

@agrasth agrasth commented Dec 2, 2025

  • All tests have passed. If this feature is not already covered by the tests, new tests have been added.
  • The pull request is targeting the master branch.
  • The code has been validated to compile successfully by running go vet ./....
  • The code has been formatted properly using go fmt ./....

Fix: --include Flag Ignored When Using Spec Files in Search Command

Description

Fixes bug where the --include flag was ignored when using spec files with jf rt search, causing all fields to be returned instead of only the specified fields.

Before Fix:

jf rt search --spec=spec.json --include="name" --limit=1
# Returns: ALL fields (path, type, size, created, modified, sha1, sha256, md5, props) ❌

After Fix:

jf rt search --spec=spec.json --include="name" --limit=1
# Returns: LIMITED fields (path, props only) ✅

Related PR:

@agrasth agrasth added bug Something isn't working safe to test Approve running integration tests on a pull request and removed safe to test Approve running integration tests on a pull request labels Dec 2, 2025
@agrasth agrasth requested a review from reshmifrog December 2, 2025 07:23
@agrasth agrasth force-pushed the include-flag-fix branch 4 times, most recently from 5a8c79c to c61afca Compare December 5, 2025 09:32
@agrasth agrasth added safe to test Approve running integration tests on a pull request and removed safe to test Approve running integration tests on a pull request labels Dec 6, 2025
@reshmifrog
Copy link
Contributor

  • please have a look why these tests are failing before merging

@agrasth agrasth force-pushed the include-flag-fix branch 2 times, most recently from 969edd6 to 7dfb507 Compare December 9, 2025 18:04
@agrasth agrasth added safe to test Approve running integration tests on a pull request and removed safe to test Approve running integration tests on a pull request labels Dec 9, 2025
Use public Include field for direct assignment.
Point to local jfrog-cli-core for development.
…nse handling

- Use json.Decoder with DisallowUnknownFields for safer deserialization
- Add validation for version tag format to ensure it matches semantic versioning
- Add 10MB size limit to HTTP response body to prevent potential DoS attacks
- Addresses Frogbot SAST finding for go-unsafe-deserialization
@agrasth agrasth added safe to test Approve running integration tests on a pull request and removed safe to test Approve running integration tests on a pull request labels Dec 10, 2025
@agrasth agrasth enabled auto-merge (squash) December 10, 2025 11:59
@agrasth agrasth added safe to test Approve running integration tests on a pull request and removed safe to test Approve running integration tests on a pull request labels Dec 10, 2025
@github-actions
Copy link
Contributor

👍 Frogbot scanned this pull request and did not find any new security issues.


@agrasth agrasth merged commit 95128d4 into jfrog:master Dec 10, 2025
68 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working safe to test Approve running integration tests on a pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants