[
https://issues.apache.org/jira/browse/PROTON-2907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18034496#comment-18034496
]
Stephen Baldwin commented on PROTON-2907:
-----------------------------------------
Created potential fix for this issue:
https://github.com/apache/qpid-proton/pull/441
> Ruby Binding is broken for Ruby < 3.4 and URI gem >= 1
> ------------------------------------------------------
>
> Key: PROTON-2907
> URL: https://issues.apache.org/jira/browse/PROTON-2907
> Project: Qpid Proton
> Issue Type: Bug
> Components: ruby-binding
> Reporter: Stephen Baldwin
> Assignee: Alan Conway
> Priority: Major
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> My project currently uses Ruby v 3.3.6 and URI 1.0.3. Upon using the 0.40.0
> version of `qpid_proton` gem, I received this error on file load:
>
> {code:java}
> /home/some_user/.rbenv/versions/3.3.6/lib/ruby/gems/3.3.0/gems/uri-1.0.3/lib/uri/rfc3986_parser.rb:73:in
> `initialize': wrong number of arguments (given 1, expected 0)
> (ArgumentError){code}
> This is because the `URI:DEFAULT_PARSER` in URI 1.0.3 is using
> `URI::Rfc3986Parser`. This was attempted to be fixed with this MR:
> [https://github.com/apache/qpid-proton/pull/439]
> Unfortunately this problem is not solely related to the Ruby version, but
> also the URI gem version.
> I'd like to fix this fully by checking what the `URI::DEFAULT_PARSER` is and
> acting accordingly from there, instead of checking ruby version.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]