Vote #80307
完了IssueSubtaskingTest fails with high probability
0%
説明
$ RAILS_ENV=test bin/rake db:migrate:reset $ bin/rails test --seed 21196 . . . Failure: IssueSubtaskingTest#test_parent_total_estimated_hours_should_be_sum_of_visible_descendants [/Users/maeda/redmines/4.0-stable/test/unit/issue_subtasking_test.rb:345]: Expected: 12 Actual: 21.0 bin/rails test test/unit/issue_subtasking_test.rb:335
journals
I am having been observed this issue since r18359. I think it can be fixed if r17761 is merged to 4.0-stable branch.
--------------------------------------------------------------------------------
The test assumes that @User.current@ is @AnonymousUser@, who cannot see other user's private issue. The error occurs when @User.current@ is a user whose role has permission to see see other user's private issue.
We can fix the error by backporting r17761 in order to ensure that the @User.current@ is always @AnonymousUser@. r17761 was committed 9 days after 4.0-stable branch had been created, in order to fix test failures.
--------------------------------------------------------------------------------
I backported r17761 to 4.0-stable and performed the same seed test.
I have confirmed that no fail occurred in IssueSubtaskingTest.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Merged r17761 to 4.0-stable.
--------------------------------------------------------------------------------
3.4-stable branch has the same problem. It also can be fixed by backporting r17761.
<pre>
$ RAILS_ENV=test bin/rake db:migrate:reset
$ RAILS_ENV=test bin/rake test SEED=46331
.
.
.
1) Failure:
IssueSubtaskingTest#test_parent_total_estimated_hours_should_be_sum_of_visible_descendants [/Users/maeda/redmines/3.4-stable/test/unit/issue_subtasking_test.rb:334]:
Expected: 12
Actual: 21.0
</pre>
--------------------------------------------------------------------------------
Merged to 3.4-stable.
--------------------------------------------------------------------------------
related_issues
relates,Closed,31778,Total estimated time issue query column and issue field might leak information
Admin Redmine さんが約4年前に更新
- カテゴリ を Code cleanup/refactoring_30 にセット
- 対象バージョン を 3.4.12_154 にセット