[DRE-maint] Bug#586520: Bug#586520: redmine crashes after upgrade to 0.9.4-3

Jérémy Lal jerry at edagames.com
Fri Dec 31 23:20:51 UTC 2010


On 31/12/2010 15:48, Radosław Antoniuk wrote:
> 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

That is a sensible request :)
I'll fix it in a future release.

Jérémy.







More information about the Pkg-ruby-extras-maintainers mailing list