Ticket #603 (closed バグ指摘: 修正済)

Opened 14 years ago

Last modified 14 years ago

DOCUMENT_ROOT=HTML_PATH以外の環境だと、installページへのリダイレクトに不具合がある。

Reported by: shutta Owned by: nanasess
Priority: Milestone: EC-CUBE2.4.4
Component: フロント Version: 2.4.3
Keywords: Cc:
修正済み:

Description (last modified by shutta) (diff)

 http://xoops.ec-cube.net/modules/newbb/viewtopic.php?viewmode=thread&topic_id=5385&forum=4&post_id=25810#forumpost25810

 http://xoops.ec-cube.net/modules/newbb/viewtopic.php?viewmode=flat&topic_id=5427&forum=4

のように、DOCUMENT_ROOT=HTML_PATH以外の環境だと、インストール(ページへのリダイレクト)に不具合がある。

#348 の修正により、今回の不具合が新たに発生している。

Change History

comment:1 Changed 14 years ago by shutta

  • Owner changed from somebody to shutta
  • Status changed from new to assigned

r18564,r18565 にて修正。

comment:2 follow-up: ↓ 3 Changed 14 years ago by shutta

 http://xoops.ec-cube.net/modules/newbb/viewtopic.php?viewmode=thread&topic_id=5385&forum=4&post_id=25810#forumpost25810[[BR]] は、別の原因かもしれません。

ですが、  http://localhost/html/ がEC-CUBEのTOPだった場合は、  http://localhost/install/ に飛ばされてしまう不具合があります。

直接  http://localhost/html/install/ にアクセスすればインストール自体はできるので致命的ではないかもしれませんが、初めてインストールする方は途方にくれると思います。

comment:3 in reply to: ↑ 2 Changed 14 years ago by shutta

shutta への返信

 http://xoops.ec-cube.net/modules/newbb/viewtopic.php?viewmode=thread&topic_id=5385&forum=4&post_id=25810#forumpost25810[[BR]] は、別の原因かもしれません。

ですが、  http://localhost/html/ がEC-CUBEのTOPだった場合は、  http://localhost/install/ に飛ばされてしまう不具合があります。

直接  http://localhost/html/install/ にアクセスすればインストール自体はできるので致命的ではないかもしれませんが、初めてインストールする方は途方にくれると思います。

URL間違えました。

 http://xoops.ec-cube.net/modules/newbb/viewtopic.php?viewmode=thread&topic_id=5385&forum=4&post_id=25810#forumpost25810

ではなくて、

 http://xoops.ec-cube.net/modules/newbb/viewtopic.php?viewmode=flat&topic_id=5427&forum=4
の方です。

comment:4 Changed 14 years ago by shutta

  • Description modified (diff)

comment:5 Changed 14 years ago by shutta

  • Description modified (diff)
  • Summary changed from DOCUMENT_ROOT=HTML_PATH以外の環境だと、インストールに不具合。 to DOCUMENT_ROOT=HTML_PATH以外の環境だと、installページへのリダイレクトに不具合がある。

comment:6 Changed 14 years ago by shutta

本チケットの修正をコミュニティ版にコミットした際(r18566)に、html/define.php の DATA_DIR2HTMLの初期定義が正式版とコミュニティ版で異なることに気付いたので、コード共通化のために、 r18567 をコミット。

html/define.phpでの初期定義
正式版 : define("DATA_DIR2HTML", "/../html/");
コミュニティ版 : define("DATA_DIR2HTML", "../html/");

comment:7 Changed 14 years ago by shutta

Windows系だと不具合があったので、 r18568, r18569 で修正した。

 http://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=5385&forum=4&post_id=25972

comment:8 follow-up: ↓ 9 Changed 14 years ago by Seasoft

r18611 にて、
 http://1.eccube.local/ec2-comu/ (未インストール)へアクセスすると、
 http://1.eccube.local/home/eccube/ec2-comu/html/install/index.php へリダイレクトが発生する。

OS Linux (Fedora)
DBサーバ PostgreSQL 8.3.7
WEBサーバ Apache/2.2.9
PHP 5.2.9
GD Loaded

comment:9 in reply to: ↑ 8 ; follow-up: ↓ 10 Changed 14 years ago by Seasoft

一旦、以下リビジョンを差し戻します。

comment:10 in reply to: ↑ 9 Changed 14 years ago by Seasoft

r18633 で差し戻しました。

comment:11 Changed 14 years ago by nanasess

  • Owner changed from shutta to nanasess
  • Status changed from assigned to new
  • Milestone set to EC-CUBE2.4.4

comment:12 Changed 14 years ago by nanasess

  • Status changed from new to assigned

comment:13 Changed 14 years ago by nanasess

version-2_4-dev r18676 で修正しました.

$_SERVERPHP_SELF? を元に上位階層へ再帰検索するようにしたので, DOCUMENT_ROOT=HTML_PATH以外の環境でも問題無いと思います.

comment:14 Changed 14 years ago by nanasess

comu-ver2 r18677 でマージしました

comment:15 Changed 14 years ago by nanasess

  • Status changed from assigned to closed
  • Resolution set to 修正済

version-2_4 r18728 でマージしました

Note: See TracTickets for help on using tickets.