Vote #79381
完了Searching for issue number with REST API redirects to issue HTML page
0%
説明
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.
--------------------------------------------------------------------------------