Feature #3851
closedHandle Rails's missing cookie secret
0%
Description
When Rails starts without a cookie secret (from config/initializers/session_store.rb
) it throws an errors with a message. I've seen this message reported as a general Redmine error when it's actually a setup error. I was wondering if Redmine itself could handle this error and present a nicer message to the user with:
- The reason for the error (Rails' message is fine here)
- How to generate the session_store.rb from rake
- A link to the install documentation
- Hide the standard Ruby backtrace
Here are two examples of Rails' message: http://www.redmine.org/boards/3/topics/7646#message-8471 http://www.redmine.org/boards/3/topics/7130#message-8379
Thoughts?
Updated by Jean-Philippe Lang over 15 years ago
- Status changed from New to Closed
- Resolution set to Wont fix
Redmine can't handle this error, sorry.
But the instal documentation will help.
Updated by Alain Beauvois about 15 years ago
A "rake config/initializers/session_store.rb" should resolve the problem, as it was for me.
Updated by Eric Davis about 15 years ago
Alain Beauvois wrote:
A "rake config/initializers/session_store.rb" should resolve the problem, as it was for me.
I know, I wasn't looking for how to fix that problem but a clearer way to tell the user how to fix it: e.g. "Please run rake config/initializers/session_store.rb".