プロジェクト

全般

プロフィール

Vote #78153

完了

Circular inclusion detected when including a wiki page with the same name

Admin Redmine さんが4年以上前に追加. 4年以上前に更新.

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

0%

予定工数:
category_id:
1
version_id:
126
issue_org_id:
24869
author_id:
38840
assigned_to_id:
1
comments:
7
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
123
ステータス-->[Closed]

説明

A Circular inclusion is incorrectly identified when including a page internal to a project with the same name from another project. This affects version prior to and including 3.3.2. To recreate:

Create test-project-1

Create wiki page named "IncludedPage" with any contents

Create test-project-2

Create wiki page named "IncludedPage"; contents include to test-project-1: {{include(test-project-1:IncludedPage)}}

Create wiki page named "TestPage"; contents include to local IncludedPage: {{include(IncludedPage)}}

In test-project-2/IncludedPage there is no error, however in test-project-2/TestPage the circular inclusion is detected.

Suggest modifying lib/redmine/wiki_formatting/macros.rb to use page.id instead of page.title.


journals

Added patch and recreated on demo.redmine.org

http://demo.redmine.org/projects/test-project-1/wiki
http://demo.redmine.org/projects/test-project-2/wiki/TestPage
--------------------------------------------------------------------------------
Incorrect patch previously uploaded. Please remove 0001 and use 0002 instead.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Confirmed the problem and the patch works fine as expected.

!{border: 1px solid #ccc;}.circular-inclusion-error.png!
--------------------------------------------------------------------------------
Committed, thanks.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Admin Redmine さんが4年以上前に更新

  • カテゴリWiki_1 にセット
  • 対象バージョン3.2.6_126 にセット

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

いいね!0
いいね!0