Skip to content

Conversation

@Watson1978
Copy link
Contributor

@Watson1978 Watson1978 commented Nov 21, 2025

Which issue(s) this PR fixes:
Fixes #5141

What this PR does / why we need it:
net-http had a bug in handling IPv6 addresses, and updating the uri would trigger strict checking, causing errors.

This PR will use net-http that has the bug fixed.

Docs Changes:
N/A

Release Note:
gem: use latest net-http to solve IPv6 addr error

@Watson1978 Watson1978 added this to the v1.20.0 milestone Nov 21, 2025
@Watson1978 Watson1978 added the backport to v1.19 We will backport this fix to the LTS branch label Nov 21, 2025
# uri v1.1.0 breaks the tests using IPv6 addresses.
# https://github.com/fluent/fluentd/issues/5141
gem.add_runtime_dependency("uri", ['~> 1.0', "< 1.1.0"])
gem.add_runtime_dependency("uri", '~> 1.0')
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
gem.add_runtime_dependency("uri", '~> 1.0')

In my understanding it's introduced for this issue, originally we didn't limit the version uri gem.
Since net-http gem depends on it, we don't need specify the version of it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it introduced to address the warning message that URI::DEFAULT_PARSER outputs as obsolete.
#4774

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport to v1.19 We will backport this fix to the LTS branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: Failed with URI::InvalidComponentError

2 participants