プロジェクト

全般

プロフィール

Vote #81786

完了

Watchers autocomplete fails with 403 error when the search is made from multiple objects with different projects

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

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

0%

予定工数:
category_id:
10
version_id:
172
issue_org_id:
36446
author_id:
399232
assigned_to_id:
107353
comments:
9
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Autocomplete is broken when bulk adding watchers for issues from different projects.

How to reproduce:

  1. Open /issues.
  2. Select two issues from different projects.
  3. Press RMB.
  4. Watchers => Add.
  5. List of users will be shown.
  6. Try to filter users.

This is happens because @WatchersController@ can't find project for @New@ and @Autocomplete_for_user@ actions and authorize a user.


journals

--------------------------------------------------------------------------------
Confirmed the issue. WatchersController#autocomplete_for_user returns 403 and the autocomplete does not work.

<pre>
Started GET "/watchers/autocomplete_for_user?object_type=issue&q=dave" for 127.0.0.1 at 2022-01-19 11:42:57 +0900
Processing by WatchersController#autocomplete_for_user as */*
Parameters: {"object_type"=>"issue", "q"=>"dave"}
Current user: admin (id=1)
Rendered common/error.html.erb (Duration: 1.2ms | Allocations: 228)
Filter chain halted as :authorize rendered or redirected
Completed 403 Forbidden in 17ms (Views: 2.5ms | ActiveRecord: 10.8ms | Allocations: 1896)
</pre>

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

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

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

--------------------------------------------------------------------------------
Fix committed, thanks!
--------------------------------------------------------------------------------
Changing target version to 4.2.4 because the change has conflicts on 4.1-stable.
--------------------------------------------------------------------------------

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

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

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

  • カテゴリUI_10 にセット
  • 対象バージョン4.2.4_172 にセット

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

いいね!0
いいね!0