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

Black Duck: Support origin-id queries using the "long_tail" namespace #9827

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

fviernau
Copy link
Member

@fviernau fviernau commented Jan 24, 2025

The externalIds for the long_tail namespace are simply repository URLs using e.g. the git protocol. The forge Forge.LONG_TAIL defines the / as the separator. When the integration-bdio library creates the query string, it accidentally replaces the double slash with a single one, e.g. git:/ instead of git://. As result, any request returns an empty result.

Work around that by simply using the : as separator, because no double colon should occur in any repository URL. So, when splitting and re-joining the string using : as separator, that issue does not happen anymore.

Part of: #8739.

@fviernau fviernau requested a review from a team as a code owner January 24, 2025 12:39
The `externalIds` for the `long_tail` namespace are simply repository
URLs using e.g. the `git` protocol. The forge `Forge.LONG_TAIL` defines
the `/` as the separator. When the `integration-bdio` library creates
the query string, it accidentally replaces the double slash with a
single one, e.g. `git:/` instead of `git://`. As result, any request
returns an empty result.

Work around that by simply using the `:` as separator, because no double
colon should occur in any repository URL. So, when splitting and
re-joining the string using `:` as separator, that issue does not happen
anymore.

Signed-off-by: Frank Viernau <[email protected]>
@fviernau fviernau force-pushed the black-duck-support-long-tail-namespace branch from d5e92c8 to c607821 Compare January 24, 2025 12:43
@fviernau fviernau enabled auto-merge (rebase) January 24, 2025 12:43
Copy link

codecov bot commented Jan 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.08%. Comparing base (72662ff) to head (c607821).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #9827   +/-   ##
=========================================
  Coverage     68.08%   68.08%           
  Complexity     1286     1286           
=========================================
  Files           249      249           
  Lines          8829     8829           
  Branches        918      918           
=========================================
  Hits           6011     6011           
  Misses         2432     2432           
  Partials        386      386           
Flag Coverage Δ
funTest-docker 65.01% <ø> (ø)
funTest-non-docker 33.35% <ø> (ø)
test-ubuntu-24.04 35.85% <ø> (ø)
test-windows-2022 35.83% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fviernau fviernau merged commit b040129 into main Jan 24, 2025
26 checks passed
@fviernau fviernau deleted the black-duck-support-long-tail-namespace branch January 24, 2025 13:03
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.

2 participants