Skip to content

XRAY-167694 - Keep scan results paths valid on Windows when the Git URL has a port - #942

Merged
Jordanh1996 merged 4 commits into
jfrog:devfrom
Jordanh1996:XRAY-167694-windows-port-repo-path
Nov 10, 2026
Merged

Jordanh1996 merged 4 commits into
jfrog:devfrom
Jordanh1996:XRAY-167694-windows-port-repo-path

Conversation

@Jordanh1996

@Jordanh1996 Jordanh1996 commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

https://jfrog-int.atlassian.net/browse/XRAY-167694

Background

Frogbot on Windows against a self-hosted Git server whose clone URL has a port (https://git.example.com:8443/...) never gets its results into the platform. The CDX upload returns 500, it is only logged as a warning, and the run still reports success.

Description

The Artifactory results path was built with filepath.Join, which on Windows adds .\ in front of a first element containing :. That sent repo_path: ./git.example.com:8443/..., which Artifactory rejects. These are Artifactory paths, so they are now joined with path. That also removes the backslashes from uploaded_artifact_path on the analytics event.

Only a .git suffix is now stripped from the clone URL path, so a dotted repo name without one (socket.io, payments.api) keeps its full name instead of being cut at the dot.

Tests

  • TestGetGitContextArtifactPath: fails on Windows before the fix, passes after.

  • Real Frogbot scan-repository on Windows, :8443 clone URL, git-repo watch: upload 500 → upload succeeds, violations fetched, results link printed.

  • Captured the analytics event on Windows: uploaded_artifact_path went from frogbot\\git.example.com\\... to frogbot/git.example.com:8443/....

  • The pull request is targeting the dev branch.

  • All static analysis checks passed.

  • All tests have passed. If this feature is not already covered by the tests, new tests have been added.

  • Updated the Contributing page / ReadMe page / CI Workflow files if needed.


🤖 Generated with Claude Code

…RL has a port

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI; Enforced overrides: Organization, Workspace
  • Review profile: CHILL
  • Plan: Enterprise
  • Run ID: c58a5e26-5cdb-42d0-ad10-408e83ad52da

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jordanh1996
Jordanh1996 marked this pull request as ready for review November 8, 2026 15:30
@Jordanh1996 Jordanh1996 added the safe to test Approve running integration tests on a pull request label Nov 8, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Nov 8, 2026
Comment thread utils/results/output/reportartifact.go Resolved
Comment thread commands/audit/audit.go Resolved
Comment thread utils/results/output/reportartifact.go Resolved
…he uploaded artifact path

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jordanh1996 Jordanh1996 added the safe to test Approve running integration tests on a pull request label Nov 10, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Nov 10, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jordanh1996 Jordanh1996 added the safe to test Approve running integration tests on a pull request label Nov 10, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Nov 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

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


@Jordanh1996
Jordanh1996 merged commit 4a45a95 into jfrog:dev Nov 10, 2026
122 of 123 checks passed
@Jordanh1996
Jordanh1996 deleted the XRAY-167694-windows-port-repo-path branch November 10, 2026 13:13
@Jordanh1996 Jordanh1996 added the bug Something isn't working label Nov 11, 2026

This branch was previously deployed

1 inactive deployment
frogbot — 4bc9cd3e Deployed Nov 10, 2026 by Jordanh1996 via scan-pull-request #4792
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

Successfully merging this pull request may close these issues.

2 participants