プロジェクト

全般

プロフィール

Vote #63856

完了

Patch boot.rb to allow for symlinks in RAILS_ROOT

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
-
対象バージョン:
開始日:
2008/09/12
期日:
進捗率:

0%

予定工数:
1.00時間
category_id:
0
version_id:
2
issue_org_id:
1892
author_id:
1496
assigned_to_id:
0
comments:
3
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

The @.../config/boot.rb@ file that ships with Redmine does not work well with symlinked directories. Specifically, during packaging for Debian I needed to replace .../vendors/rails with the Debian equivalent. Symlinking @.../vendor/rails -> /usr/share/rails@ broke Redmine so that it wouldn't find the Rails install at all.

The attached patch uses the @expand_path()@ function on the File object to pre-expand the symlinks so they don't cause problems later. This shouldn't affect anything else although I have only tested it on Debian Lenny, not Windows or any other flavor of Unix. If there is a better way to do this then please let me know and I'll update my package.

Thanx!
Richard


journals

This patch is related to issue #1750.
--------------------------------------------------------------------------------
It doesn't seem to affect anything on Windows and I can see that Radiant did the same (http://github.com/radiant/radiant/tree/master/config/boot.rb).
Patch committed in r1820.

Since boot.rb is a standard Rails file (no Redmine specific), I suggest you to report this problem to the Rails team.
--------------------------------------------------------------------------------
I've commented on the update in the Rails VCS but am not sure about opening a ticket just yet. It looks like they purposefully added the expand_path() to the Windows code but not the Unix code. I'm trying to get more info about why they decided to do that. Maybe there is something going on that we don't know about and I just want to cover all the bases. :)

Thanx!
Richard
--------------------------------------------------------------------------------

Admin Redmine さんがほぼ2年前に更新

  • 対象バージョン0.8_2 にセット

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

いいね!0
いいね!0