Skip to content

Conversation

@wirew0rm
Copy link
Member

The validation rejected some needed valid URIs.

  • mds://*:1234 -> setting the host as asterisk is used in zeromq to bind to all interfaces
  • http://[::1]:123 -> ipv6 addresses as the host part should be valid. No immediate usecase but added it since I was touching the code.

There are probably more cases, so this should be followed up at some point by testing against a big corpus of valid URIs.

The validation rejected some needed valid URIs.
- mds://*:1234 ->  setting the host as asterisk is used in zeromq to
  bind to all interfaces
- http://[::1]:123 -> ipv6 addresses as the host part should be valid.
  No immediate usecase but added it since I was touching the code.

There are probably more cases, so this should be followed up at some
point by testing against a big corpus of valid URIs.

Signed-off-by: Alexander Krimm <A.Krimm@gsi.de>
@wirew0rm wirew0rm temporarily deployed to configure coverage January 14, 2026 15:40 — with GitHub Actions Inactive
@wirew0rm wirew0rm temporarily deployed to configure coverage January 14, 2026 15:40 — with GitHub Actions Inactive
@wirew0rm wirew0rm temporarily deployed to configure coverage January 14, 2026 15:40 — with GitHub Actions Inactive
@wirew0rm wirew0rm temporarily deployed to configure coverage January 14, 2026 15:40 — with GitHub Actions Inactive
@wirew0rm wirew0rm temporarily deployed to configure coverage January 14, 2026 15:40 — with GitHub Actions Inactive
@wirew0rm wirew0rm temporarily deployed to configure coverage January 14, 2026 15:40 — with GitHub Actions Inactive
Copy link
Member

@RalphSteinhagen RalphSteinhagen left a comment

Choose a reason for hiding this comment

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

OK

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot
70.4% Coverage on New Code (required ≥ 80%)
25.0% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@wirew0rm wirew0rm merged commit 4854235 into main Jan 14, 2026
9 of 10 checks passed
@wirew0rm wirew0rm deleted the URIvalidation branch January 14, 2026 16:09
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.

3 participants