Defect #12851
"Parent task is invalid" while editing child issues by Role with restricted Issues Visibility
Status: | Closed | Start date: | ||
---|---|---|---|---|
Priority: | High | Due date: | ||
Assignee: | % Done: | 0% | ||
Category: | Issues permissions | |||
Target version: | 2.2.2 | |||
Resolution: | Fixed | Affected version: | 2.2.1 |
Description
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)
What is the expected output?¶
User should be able to edit the issue, as long as its parent task id is not modified.
What do you see instead?¶
"Parent task is invalid" error message.
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.
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
Associated revisions
"Parent task is invalid" while editing child issues with restricted Issues Visibility (#12851).
History
#1
Updated by Daniel Felix about 8 years ago
- Target version set to 2.2.2
#2
Updated by Jean-Philippe Lang almost 8 years ago
- Status changed from New to Resolved
- Assignee set to Jean-Philippe Lang
- Resolution set to Fixed
Fixed in r11228, thanks for pointing this out.
#3
Updated by Jean-Philippe Lang almost 8 years ago
- Status changed from Resolved to Closed
Merged in 2.2-stable.