Project

General

Profile

Actions

Defect #29055

closed

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

Added by Igor Antonov almost 6 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Category:
REST API
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

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.


Files

fix-29055.patch (1.13 KB) fix-29055.patch Go MAEDA, 2019-03-02 07:35
Actions #1

Updated by Go MAEDA about 5 years ago

Probably the redirecting is nouse for API clients. Here is a patch to fix it.

Actions #2

Updated by Go MAEDA about 5 years ago

  • Target version changed from Candidate for next minor release to 3.4.10

Setting the target version to 3.4.10.

Actions #3

Updated by Jean-Philippe Lang about 5 years ago

  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Resolution set to Fixed

Fix committed, thanks. Test moved to the API tests.

Actions

Also available in: Atom PDF