Jruby/rack/rails truncating post data when submitting data

Hi,

I am having a problem with post data being truncated at around 5k from
a form running jruby 1.3.1 on rails 2.3.3 with warbler and jboss. I
have posted the firebug copy of the post and the output from rails for
the same post.

Browser - http://pastebin.com/m4803285d http://pastebin.com/m4803285d
Rails - http://pastebin.com/m75ae239c http://pastebin.com/m75ae239c

Firstly the content param has been truncated, but also strangely, what
appears to be the remainder of the params also have been lost (_method,
name), so sounds like its before it parses the post body that the issue
is
appearing.

I have looked at request.raw_post and that also has been truncated.

I noticed that there was an issue a while back but seemed to get fixed
in
jruby 1.1. I’ve also tried it on 1.4 RC1 and get the same issue.

Has anyone seen anything similar, or can point me in the right direction
to
debug this as i seem to have exhausted my google foo?

I’ve had a quick look at Rack, and suspect that this is where the
problem
lies, and intend to investigate further there, but if anyone has seen
this
before or can think of where in Rack it might be i would appreciate the
help.

thanks,
Stewart.

View this message in context:
http://www.nabble.com/jruby-rack-rails-truncating-post-data-when-submitting-data-tp25908359p25908359.html
Sent from the JRuby - User mailing list archive at Nabble.com.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Found the issue, turned out we were using a nightly build of rack
(jruby-rack-0.9.5-20090625.190033-5.jar) rather than the stable release
(jruby-rack-0.9.5.jar). Works like a charm now!

Stewart.

stewartmckee wrote:

Has anyone seen anything similar, or can point me in the right direction
to debug this as i seem to have exhausted my google foo?

I’ve had a quick look at Rack, and suspect that this is where the problem
lies, and intend to investigate further there, but if anyone has seen this
before or can think of where in Rack it might be i would appreciate the
help.

thanks,
Stewart.


View this message in context:
http://www.nabble.com/jruby-rack-rails-truncating-post-data-when-submitting-data-tp25908359p25988992.html
Sent from the JRuby - User mailing list archive at Nabble.com.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs