プロジェクト

全般

プロフィール

Vote #81457

完了

Gracefully handle invalid operators and associations requested in queries

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

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

0%

予定工数:
category_id:
59
version_id:
155
issue_org_id:
35312
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]

説明

Users can request arbitrary operators or custom field associations for fields in queries for issues or time entries. This is validated in the @Query@ class with an exception being raised if an invalid operator or custom field association was requested.

The attached patch handles this case by raising a named Error instead and gracefully handling this error in the UI by logging the original exception and rendering a 404 error.


journals

--------------------------------------------------------------------------------
This patch probably masks the underlying issue in #35062 (by rendering a 404 instead of a 500 there). The root cause of this issue should probably still be checked.
--------------------------------------------------------------------------------
Setting the target version to 5.0.0.
--------------------------------------------------------------------------------
Committed the patch. Thank you.
--------------------------------------------------------------------------------

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


related_issues

relates,Confirmed,35062,Back URLs with <t+ operator break
relates,Closed,35500,Add missing fixture to IssuesTest

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

  • カテゴリFilters_59 にセット
  • 対象バージョン5.0.0_155 にセット

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

いいね!0
いいね!0