[DRE-maint] Bug#586520: Bug#586520: redmine crashes after upgrade to 0.9.4-3
Radosław Antoniuk
radek.antoniuk at gmail.com
Fri Dec 31 14:48:16 UTC 2010
Ok, After a bit of digging into REE and Redmine package issue I am
following up on this.
The lines that have been added there:
loads cookie based session session and secret keys
# this is needed here because initializers are loaded after plugins,
# and some plugins initialize ActionController which requires a secret
to be set.
# crash if file not found
filename = ENV['RAILS_ETC'] ? File.join(ENV['RAILS_ETC'],
'session.yml') : File.join(File.dirname(__FILE__), '..',
'session.yml')
sessionconfig = YAML::load_file(filename)
require 'action_controller'
relativeUrlRoot = ENV['RAILS_RELATIVE_URL_ROOT']
ActionController::Base.session = {
:key => sessionconfig[Rails.env]['key'],
:secret => sessionconfig[Rails.env]['secret'],
:path => (relativeUrlRoot.blank?) ? '/' : relativeUrlRoot
}
should be in the initializers/50-debian.rb
after the .run! method is invoked.
And this is more elegant way of modifying things for Debian I think :)
Radek
More information about the Pkg-ruby-extras-maintainers
mailing list