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
"undefined method DelegateClass
for Rack::Session::Cookie:Class
"
#7647
Comments
Actually the test fails in released JRuby 9.4 too: https://github.com/sinatra/sinatra/actions/runs/4145890858/jobs/7170862315#step:7:40
|
Can reproduce with:
9.3.10 works
|
Oh, my repro works in CRuby 2.6 but fails on versions above that
Wonder why that isn't visible in the Sinatra tests 🤔 |
I guess JRuby is doing the right thing? |
So it is (was) Rack missing an Oh well |
Forgot to link: rack/rack#1610 |
Environment Information
jruby 9.4.2.0-SNAPSHOT (3.1.0) 2023-02-09 e4a5939c18 OpenJDK 64-Bit Server VM 11.0.18+10 on 11.0.18+10 +jit [x86_64-linux]
Expected Behavior
Passing rack-protection tests :-)
Actual Behavior
This test in Sinatra / rack-protection pass on MRI and JRuby 9.3 but not with jruby-head: https://github.com/sinatra/sinatra/blob/b9064b9faa36d025530d50bc6e1eed802ff3692e/rack-protection/spec/lib/rack/protection/authenticity_token_spec.rb#L76-L85
CI log at https://github.com/sinatra/sinatra/actions/runs/4145731271/jobs/7170488680#step:7:40
I think it is this code in Rack 2 that triggers it? https://github.com/rack/rack/blob/v2.2.6.2/lib/rack/session/cookie.rb#L155-L162
Can probably (hopefully?) be boiled down to something much smaller for reproducing but thought I should report it earlier than later, maybe you have a hunch what it is.
The text was updated successfully, but these errors were encountered: