Project

General

Profile

Actions

Defect #10008

closed

auto_complete too restrictive?

Added by ed boel almost 13 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Cant reproduce
Affected version:

Description

I have had this issue after upgrading to redmine-1.3.0: when adding a relation to an issue, normally the title of the related issue would show up in a tooltip when entering the issue number. But in the new version, the loading box would pop-up but no tooltip show up. The log files showed me this:

Processing IssuesController#auto_complete (for 100.100.100.100 at 2012-01-17 10:29:23) [POST]
  Parameters: {"scope"=>"all", "project_id"=>"roll-out-18", "action"=>"auto_complete", "amp"=>nil, "id"=>"3008", "q"=>"2862", "controller"=>"issues"}
Filter chain halted as [:authorize] rendered_or_redirected.
Completed in 18ms (View: 0, DB: 11) | 403 Forbidden [https://myhost.my/issuetracker/issues/auto_complete?id=3008&project_id=roll-out-system]

After some research I discovered that the routes.rb had the line

   map.auto_complete_issues '/issues/auto_complete', :controller => 'auto_completes', :action => 'issues'

changed into:
   map.auto_complete_issues '/issues/auto_complete', :controller => 'auto_completes', :action => 'issues', :conditions => { :method => :get }

As I can see in the log, it is clearly a POST. So I removed the condition, and it works again. But have I made now a horrible mistake?

Actions

Also available in: Atom PDF