プロジェクト

全般

プロフィール

Vote #79381

完了

Searching for issue number with REST API redirects to issue HTML page

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

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

0%

予定工数:
category_id:
32
version_id:
149
issue_org_id:
29055
author_id:
322536
assigned_to_id:
1
comments:
3
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
110
ステータス-->[Closed]

説明

Search REST API queries matching issue number (with or without "#") are being redirected to HTML issue page if the issue exists.
The redirect is caused by quick jump to issue at source:/tags/3.3.0/app/controllers/search_controller.rb#L40.

Quick jump is useful for search field in the UI but REST API response with redirect to an HTML page is... unexpected.
I suggest leaving quick jump for HTML response and actually searching for issue number-like text for REST API.


journals

Probably the redirecting is nouse for API clients. Here is a patch to fix it.
--------------------------------------------------------------------------------
Setting the target version to 3.4.10.
--------------------------------------------------------------------------------
Fix committed, thanks. Test moved to the API tests.
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリREST API_32 にセット
  • 対象バージョン3.4.10_149 にセット

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

いいね!0
いいね!0