Project

General

Profile

Actions

Feature #3851

closed

Handle Rails's missing cookie secret

Added by Eric Davis over 15 years ago. Updated about 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-09-12
Due date:
% Done:

0%

Estimated time:
Resolution:
Wont fix

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?

Actions #1

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.

Actions #2

Updated by Alain Beauvois about 15 years ago

A "rake config/initializers/session_store.rb" should resolve the problem, as it was for me.

Actions #3

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".

Actions

Also available in: Atom PDF