プロジェクト

全般

プロフィール

Vote #77146

完了

Moving a page with a child raises an error if target wiki contains a page with the same name as the child

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

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

0%

予定工数:
category_id:
1
version_id:
113
issue_org_id:
21900
author_id:
144180
assigned_to_id:
1
comments:
7
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
102
ステータス-->[Closed]

説明

Project A has Wiki pages, "Wiki-P" and "Wiki-C". "Wiki-C" is a child of "Wiki-P".
Project B has an Wiki page, "Wiki-C".

Project A:
Wiki-P
  Wiki-C

Project B:
Wiki-C

Moving "Wiki-C" in Project A to Project B %{color:blue}warns as "Title has already been taken".%
Moving "Wiki-P" in Project A to Project B %{color:red}causes an internal error.%


bitnami@linux:~/redmine/htdocs$ ruby bin/about

sh: 1: darcs: not found
sh: 1: hg: not found
sh: 1: cvs: not found
sh: 1: bzr: not found
Environment:
  Redmine version                3.2.0.stable
  Ruby version                   2.1.8-p440 (2015-12-16) [x86_64-linux]
  Rails version                  4.2.5
  Environment                    production
  Database adapter               Mysql2
SCM:
  Subversion                     1.8.13
  Git                            2.6.1
  Filesystem

journals

Fixed in r15130, thanks for poiting this out.
--------------------------------------------------------------------------------
Thank you for your prompt fix.

I found this bug because I wanted to know how this function, moving Wiki pages, works.
[[RedmineWikis]] has no description about it yet. #5450 was this only clue, but has little information.

The following is my understanding for [[RedmineWikis]]. I still don't understand the behavior of the last sentence. (I'm not familiar with Ruby and am not sure how your fix works.)

***

h2. Renaming and moving a wiki page

To rename a wiki page and move a wiki page and its children to other project, click on !/images/move.png! *Rename*.

If 'Redirect existing links' is checked, existing links to the current page are redirected to the wiki page renamed or moved. Links to the children-pages move to other project are not redirected. To stop the redirection see a workaround in #6401#note-8.

You can specify a parent page by 'Parent page'.

You can also specify a destination project by 'Project'. Moving a page with a child raises an error if target wiki contains a page with the same name as the child. In this case no pages are moved (or moved partially and parent-children relationship need to be fixed???).

--------------------------------------------------------------------------------
After the fix, the last paragraph would be:

You can move a page to another project by specifying the destination project in 'Project'. When moving a page, each child page is also moved unless the destination project contains a page with the same name.
--------------------------------------------------------------------------------
Good. That is I expected.

[[Submissions]] says

> Submitting a Wiki improvement
>
> When you edit a wiki page to improve its content, make sure that you fill the comment field with a descriptive summary of the changes you've made to the page. This way we'll be better able to "monitor" and "maintain" the quality of the actual wiki content.

May I edit the wiki page?

--------------------------------------------------------------------------------
Hiroo Hayashi wrote:

> May I edit the wiki page?

Sure
--------------------------------------------------------------------------------
>> May I edit the wiki page?
> Sure

I did it. I added some more changes.

Please double-check, since English is not my first language.

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

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

Admin Redmine さんが約4年前に更新

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

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

いいね!0
いいね!0