jfrog / jfrog/jfrog-cli-security
jf scan regression issue since jfrog-cli v.2.86.0
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 13
- Forks
- 50
- Avg merge
- 3d 48m
- Merged PRs (30d)
- 26
Description
Describe the bug
We use "jf scan" with "--extended-table" and "--watches" options to scan a tar file of a Docker image.
Up to jfrog-cli v2.85.0 (jfrog-security-cli v1.23.0). Since jfrog-cli v2.86.0 (jfrog-security-cli v1.24.0) this fails.
Current behavior
> jf scan --extended-table --watches=foobar-min-severity-critical --fail=false /tmp/tmp.BKBGlj/image.tar
[Info] JFrog Xray Indexer 3.111.20 is not cached locally. Downloading it now...
[Info] The downloaded Xray Indexer version is 3.111.20
[Info] Xray is processing your scan results...
[Info] No violations found.
[Info] Trace ID for JFrog Platform logs: 123456789
[Error] failed to record results: ParseNewTargetResults must be called before starting to parse issues
Reproduction steps
No response
Expected behavior
jf scan should finish without error
JFrog CLI version
2.86.0 or newer
Operating system type and version
Docker / Ubuntu 24..04
JFrog Artifactory version
No response
JFrog Xray version
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the jf scan path handling --extended-table and --watches, and compare behavior between jfrog-cli 2.85.0 and 2.86.0 using the tar-file command shown. Confirm the regression and trace the result parsing sequence; done means the scan finishes without the “ParseNewTargetResults” error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli, security
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100