プロジェクト

全般

プロフィール

Vote #68310

未完了

Separate non-subURI Redmine instances on the same machine cannot be logged into at once

Admin Redmine さんが約4年前に追加.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
-
対象バージョン:
-
開始日:
2010/10/06
期日:
進捗率:

0%

予定工数:
2.00時間
category_id:
0
version_id:
0
issue_org_id:
6583
author_id:
9151
assigned_to_id:
0
comments:
0
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
24
ステータス-->[New]

説明

This problem is trivial to reproduce.

Create two separate Redmine folders from the 1.02 package.

Initialise both as Redmine instances using the standard procedures, and run them with WebRICK or Mongrel on two different ports (so one is on machine:1234 and the other on machine:3000 )

Log into one, move around a bit, then log into the other. Switch back to the first one and click a link. You will be taken to the login screen.

Apparently the original 'setcookie' specification ignores ports, so one instance clobbers the other's session cookie.

Proposed resolution:
I took a look at the Redmine code. The session seems to be always set with a name '_redmine_session' and a randomly generated secret.
What I propose is this:
Edit the rake task in 'initialisers.rake' to accept a single argument for an identifier for the instance. This identifier is appended to the '_redmine_session' string during code generation. Thus each Redmine instance doesn't stomp on the other's cookie even if they are hosted on the same machine.

This also provides a cleaner solution to #3968 that avoids hand-editing code.

表示するデータがありません

他の形式にエクスポート: Atom PDF

いいね!0