Skip to content

fix: preserve colon package names in catalog label assignments - #417

Open
omribz156 wants to merge 1 commit into
jfrog:mainfrom
omribz156:codex/catalog-label-version-key
Open

fix: preserve colon package names in catalog label assignments#417
omribz156 wants to merge 1 commit into
jfrog:mainfrom
omribz156:codex/catalog-label-version-key

Conversation

@omribz156

Copy link
Copy Markdown

Summary:

  • Replace package:type:version string keys in catalog label version-assignment state/update handling with a structured key.
  • Preserve package names that contain : (for example Maven coordinates such as mysql:mysql-connector-java) when adding, changing, or removing version assignments.
  • Add focused unit coverage for colon-containing package names and a changelog entry.

Verification:

  • go test ./pkg/xray/resource -run '^TestNewVersionAssignmentKeyKeepsColonPackageNameIntact$' -count=1
  • go test ./pkg/xray/resource -run '^$' -count=1
  • go test ./pkg/... -run '^$' -count=1
  • git diff --check

Not run:

  • Full acceptance tests, because they require a configured JFrog/Xray instance and XRAY_URL or JFROG_URL.

This was implemented with Codex assistance, with the patch kept focused and manually reviewed.

Closes #415

srinivasgowda097 added a commit that referenced this pull request Jul 14, 2026
fix: preserve colon package names in catalog label assignments(#417)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

xray_catalog_labels: version_assignments doesn't work when package_name contains semicolon

1 participant