jruby-rack icon indicating copy to clipboard operation
jruby-rack copied to clipboard

Not working with Rack 3.1+ due to removed Rack::Chunked dependency

Open wysoki opened this issue 8 months ago • 3 comments

After updating Rack to 3.1+, when starting a Rails application on Tomcat, JRuby-Rack looks for rack/chunked without success. It ends with the exception: "An exception happened during JRuby-Rack startup: no such file to load -- rack/chunked". This module was removed without replacement in Rack 3.1.0.

wysoki avatar Jun 23 '25 15:06 wysoki

This doesn't work with Rack 3.x, likely for more reasons than that as many things have changed with sessions that will break it (depending on session mgmt approach).

The dependencies for 1.2.3 have been made clearer than it's only 2.2 compatible.

chadlwilson avatar Jun 23 '25 20:06 chadlwilson

Right, sure. Any chance you're planning to support 3.1+ in the foreseeable future? Thanks!

wysoki avatar Jun 24 '25 09:06 wysoki

Personally I doubt it, given the lack of maintainers available here, and that until recently there have been essentially no releases for years with long-standing session-related issues that took years to get addressed for Rails 7.0. Even the rails 7.1+ support here is likely not fully working - so unless someone new puts the effort to work on Rack support I'm not so confident it will happen.

I may look at it if I ever manage to get this working in my specific case with a modern, supported Rails version (which may be a problem unrelated to jruby-rack, but blocks me personally from caring about rack 3.x just yet)

chadlwilson avatar Jun 24 '25 12:06 chadlwilson

Thanks for the clarification. Closing this as it was my oversight.

wysoki avatar Jun 25 '25 06:06 wysoki

See #304. I have managed to get my own project working on Rails 7.2 after fixing an issue with CSRF compatibility in jruby-rack so I might be able to have a look at this some time.

chadlwilson avatar Jul 23 '25 04:07 chadlwilson