Skip to content

fix(oci): fix repository detection for OCI URLs with IP addresses#894

Merged
piotrjanik merged 2 commits into
open-component-model:mainfrom
piotrjanik:fix/oci-reporef-netname
Sep 17, 2025
Merged

fix(oci): fix repository detection for OCI URLs with IP addresses#894
piotrjanik merged 2 commits into
open-component-model:mainfrom
piotrjanik:fix/oci-reporef-netname

Conversation

@piotrjanik

Copy link
Copy Markdown
Contributor

Previously, repository references in the format of IP:PORT were incorrectly recognised due to a parsing error. This fix ensures that repositories behind an IP address are correctly detected.

Fixes open-component-model/ocm-project#651

@piotrjanik piotrjanik requested a review from a team as a code owner September 17, 2025 12:21

@jakobmoellerdev jakobmoellerdev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great already! Do you mind adding a test permutation in https://github.com/open-component-model/open-component-model/pull/894/files#diff-09d82ce22ddbe9276d3d6a4040e6a94f78a6647a4d7adddd5748de29c25ed2cdL287 for the ip case? then we have a lot more tests running against this

@piotrjanik piotrjanik force-pushed the fix/oci-reporef-netname branch from 674f345 to 336d42f Compare September 17, 2025 12:47
<!-- markdownlint-disable MD041 -->

Previously, repository references in a format of IP:PORT were incorrectly recognized due to a parsing error. This fix ensures that repositories behind an IP address are correctly detected.

<!--
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->

Fixes open-component-model/ocm-project#651

Signed-off-by: Piotr Janik <piotr.janik@sap.com>
<!-- markdownlint-disable MD041 -->

Previously, repository references in a format of IP:PORT were incorrectly recognized due to a parsing error. This fix ensures that repositories behind an IP address are correctly detected.

<!--
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->

Fixes open-component-model/ocm-project#651

Signed-off-by: Piotr Janik <piotr.janik@sap.com>
@piotrjanik piotrjanik force-pushed the fix/oci-reporef-netname branch from c439102 to 7d5cb86 Compare September 17, 2025 13:54
@piotrjanik piotrjanik enabled auto-merge (squash) September 17, 2025 13:55
@piotrjanik piotrjanik merged commit ece1935 into open-component-model:main Sep 17, 2025
19 checks passed
@piotrjanik piotrjanik deleted the fix/oci-reporef-netname branch September 17, 2025 13:57
matthiasbruns pushed a commit to matthiasbruns/open-component-model that referenced this pull request Sep 18, 2025
…en-component-model#894)

<!-- markdownlint-disable MD041 -->

Previously, repository references in the format of IP:PORT were
incorrectly recognised due to a parsing error. This fix ensures that
repositories behind an IP address are correctly detected.

<!--
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. -->

Fixes open-component-model/ocm-project#651

---------

Signed-off-by: Piotr Janik <piotr.janik@sap.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Short Style Reference Syntax for CTF Archives in CLI

3 participants