プロジェクト

全般

プロフィール

Vote #79402

完了

Only allow visible custom fields as aggregation criteria in time reports

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

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

0%

予定工数:
category_id:
13
version_id:
99
issue_org_id:
29162
author_id:
2784
assigned_to_id:
332
comments:
6
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

In time reports, the user can currently select any custom field defined in the Redmine system as an aggregation criteria. This can lead to confusion since the returned data might not reflect the custom field or might even lead to an information leak regarding the existence of a hidden custom field. The data returned in the report itself is correctly filtered so that the field is only considered if it is actually visible to the current user.

The attached patch filters the custom fields available as aggregation criteria in the report to only allow the use of visible custom fields.


journals

--------------------------------------------------------------------------------
With just this patch, we can avoid the consequences of #29161 (at least I have not found any other place where this is an issue). Still, we should also apply #29161 to make the method save to use for ProjectCustomFields.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
I confirmed the problem. Setting the target version to 3.3.9.

!{width: 976px; border: 1px solid #ccc;}.29162@2x.png!
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Committed. Thank you for detecting and fixing this issue.
--------------------------------------------------------------------------------


related_issues

relates,Closed,29161,Avoid SQL errors when adding a project custom field as a time report criteria

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

  • カテゴリTime tracking_13 にセット
  • 対象バージョン4.0.0_99 にセット

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

いいね!0
いいね!0