Project

General

Profile

Spent Time link on ticket causes 403 error with Redmine 1.1.0

Added by Masayuki Shibata almost 14 years ago

Hi

Now I am trying grade up to Redmine 1.1.0.
So I found the errror like subject.

advanded roadmap plugin is 0.2.0.

Somebody has any idea?


Replies (2)

RE: Spent Time link on ticket causes 403 error with Redmine 1.1.0 - Added by Masayuki Shibata almost 14 years ago

self reply (additional information)

on production.log

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>

I do not know this is correct or not, but its working anyway.

    (1-2/2)