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

build scan command with flag --project is returning xray_details_url without project key #868

Open
bhanurp opened this issue Dec 8, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@bhanurp
Copy link
Collaborator

bhanurp commented Dec 8, 2023

Describe the bug

jf bs <BUILD_NAME> <BUILD_NUMBER> --project MyProject --format json should return "xray_data_url" with projectKey as query param as shown below

[
{
"xray_data_url": "http://localhost:8046/xray/ui/scans-list/builds-scans/docker-local-build/scan-descendants/359014?version=359014\u0026package_id=build%3A%2F%2F%5Bbhanu-build-info%5D%2Fdocker-local-build\u0026build_repository=bhanu-build-info\u0026component_id=build%3A%2F%2F%5Bbhanu-build-info%5D%2Fdocker-local-build%3A359014\u0026page_type=security-vulnerabilities\u0026exposure_status=to_fix\u0026projectKey=bhanu"
}
]

Current behavior

The response is shown without projectKey in the query params

[
{
"xray_data_url": "http://localhost:8046/xray/ui/scans-list/builds-scans/docker-local-build/scan-descendants/359014?version=359014\u0026package_id=build%3A%2F%2F%5Bbhanu-build-info%5D%2Fdocker-local-build\u0026build_repository=bhanu-build-info\u0026component_id=build%3A%2F%2F%5Bbhanu-build-info%5D%2Fdocker-local-build%3A359014\u0026page_type=security-vulnerabilities\u0026exposure_status=to_fix"
}
]

Reproduction steps

Use below command for build scan associated with any project apart from default and see that projectKey is missing in query params returned in xray_data_url.

jf bs docker-local-build 1 --fail=false --format=json --project <PROJECT_NAME>

Expected behavior

Should return projectKey as query param in xray_data_url

JFrog Client-Go version

1.35.0

JFrog CLI version (if applicable)

No response

Operating system type and version

mac, linux

JFrog Artifactory version

No response

JFrog Xray version

3.83.7

@bhanurp bhanurp added the bug Something isn't working label Dec 8, 2023
@bhanurp bhanurp self-assigned this Dec 8, 2023
bhanurp added a commit to bhanurp/jfrog-client-go that referenced this issue Dec 8, 2023
eyalbe4 pushed a commit that referenced this issue Dec 23, 2023
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