Forum: Ruby on Rails Rails 2.2.2 session is failing in pstore using file_field_tag

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
964a45dde01b7c3f60992a04bcbb89d1?d=identicon&s=25 Deeg (Guest)
on 2008-12-09 23:45
(Received via mailing list)
When I try to upload a file using the file_field_tag I get the
following exception (top 10 lines in the stack shown):

/!\ FAILSAFE /!\  Tue Dec 09 17:11:12 -0500 2008
  Status: 500 Internal Server Error
  End of file reached
    /usr/local/lib/jruby-1.1.5/lib/ruby/1.8/pstore.rb:355:in `load'
    /usr/local/lib/jruby-1.1.5/lib/ruby/1.8/pstore.rb:355:in `load'
    /usr/local/lib/jruby-1.1.5/lib/ruby/1.8/pstore.rb:310:in
`transaction'
    /usr/local/lib/jruby-1.1.5/lib/ruby/gems/1.8/gems/actionpack-2.2.2/
lib/action_controller/cgi_ext/session.rb:48:in `initialize'
    /usr/local/lib/jruby-1.1.5/lib/ruby/1.8/cgi/session.rb:273:in
`initialize'
    /usr/local/lib/jruby-1.1.5/lib/ruby/gems/1.8/gems/actionpack-2.2.2/
lib/action_controller/cgi_ext/session.rb:19:in `initialize'
    /usr/local/lib/jruby-1.1.5/lib/ruby/gems/1.8/gems/actionpack-2.2.2/
lib/action_controller/cgi_process.rb:94:in `session'
    /usr/local/lib/jruby-1.1.5/lib/ruby/gems/1.8/gems/actionpack-2.2.2/
lib/action_controller/cgi_process.rb:130:in `stale_session_check!'
    /usr/local/lib/jruby-1.1.5/lib/ruby/gems/1.8/gems/actionpack-2.2.2/
lib/action_controller/cgi_process.rb:78:in `session'

The problem appears to be in the temp session file in RAILS/tmp/
session; if I try to load it using Marshal::load(filename) I get a
"Marshal data too short" error.  I can store other values in the
session without any problems.  Any ideas on what I can do to get
around this?

Rails 2.2.2
Mongrel 1.1.5
JRuby 1.1.5
Ubuntu (hardy)

Much appreciated.
This topic is locked and can not be replied to.