プロジェクト

全般

プロフィール

Vote #73143

完了

"Parent task is invalid" while editing child issues by Role with restricted Issues Visibility

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

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

0%

予定工数:
category_id:
23
version_id:
66
issue_org_id:
12851
author_id:
70371
assigned_to_id:
1
comments:
3
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
63
ステータス-->[Closed]

説明

h3. What steps will reproduce the problem?

create Role with Issues Visibility = "Issues created by or assigned to the user" and "Manage subtasks" permission

create some User account with that Role for a project

create parent issue, not created or assigned to that User (so User will not be able to access it)

create child issue, assigned to that User (so User will be able to access it)

log in to the User account

try to edit the child issue (i.e. simply changing its Status)

h3. What is the expected output?

User should be able to edit the issue, as long as its parent task id is not modified.

h3. What do you see instead?

"Parent task is invalid" error message.

h3. Possible workaround

Remove "Manage subtasks" permission.
Unfortunately, this will also prevent User from creating child issues to his own parent issues.
But "Related issues" is not affected by this bug, so it can be used instead of child issues.

h3. Environment

Redmine version 2.2.1.stable
Ruby version 1.9.3 (i686-linux)
Rails version 3.2.11
Environment production
Database adapter Mysql2
Redmine plugins: no plugin installed


journals

--------------------------------------------------------------------------------
Fixed in r11228, thanks for pointing this out.
--------------------------------------------------------------------------------
Merged in 2.2-stable.
--------------------------------------------------------------------------------

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

  • カテゴリIssues permissions_23 にセット
  • 対象バージョン2.2.2_66 にセット

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

いいね!0
いいね!0