Project

General

Profile

Error #387

Spent Time link on ticket causes 403 error with Redmine 1.1.0

Added by Emilio González Montaña over 13 years ago. Updated over 13 years ago.

Status:
Resolved
Priority:
Normal
Category:
Issues
Target version:
Start date:
2011-01-16
Due date:
2011-01-16
% Done:

100%

Estimated time:
Source:
Detected on version:
Redmine version:
Milestones:

Description

MOVED from forum

with advanced roadmap plugin

Processing TimelogController#details (for 192.168.1.10 at 2011-01-14 12:23:43) [GET]
Parameters: {"project_id"=>"example000", "issue_id"=>"123", "action"=>"details", "controller"=>"timelog"}
Rendering template within layouts/base
Rendering common/error (403)
Filter chain halted as [:authorize] rendered_or_redirected.
Completed in 47ms (View: 47, DB: 0) | 403 Forbidden [http://example.com/redmine/projects/example000/timelog/details?issue_id=123]

without advanced roadmap plugin

Processing TimelogController#index (for 192.168.1.10 at 2011-01-14 12:36:13) [GET]
Parameters: {"project_id"=>"example000", "issue_id"=>"123", "action"=>"index", "controller"=>"timelog"}
Rendering template within layouts/base
Rendering timelog/index
Completed in 203ms (View: 141, DB: 31) | 200 OK [http://example.com/redmine/projects/example000/issues/123/time_entries]

Then, for the time being, I modified ':action' in following line...

app\views\issues\show.rhtml(35):     <td class="spent-time"><%= @issue.spent_hours > 0 ? (link_to l_hours(@issue.spent_hours), {:controller => 'timelog', :action => 'details', :project_id => @project, :issue_id => @issue}) : "-" %></td>

to like following...

app\views\issues\show.rhtml(35):     <td class="spent-time"><%= @issue.spent_hours > 0 ? (link_to l_hours(@issue.spent_hours), {:controller => 'timelog', :action => 'index', :project_id => @project, :issue_id => @issue}) : "-" %></td>
#1

Updated by Emilio González Montaña over 13 years ago

  • Due date set to 2011-01-16
  • Status changed from In progress to Resolved
  • % Done changed from 0 to 100

Redmine v1.1.0 refactoriced the time log links, so the link from the issue show view has been adapted, but with it is still compatible with older versions.

Also available in: Atom PDF