https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292010-09-14T09:33:37ZRedmineRedmine - Defect #6388: New Subproject leads to a 404https://www.redmine.org/issues/6388?journal_id=202732010-09-14T09:33:37ZFelix Schäfer
<ul></ul><p><a class="wiki-page" href="https://www.redmine.org/projects/redmine/wiki/SubmittingBugs">SubmittingBugs</a></p> Redmine - Defect #6388: New Subproject leads to a 404https://www.redmine.org/issues/6388?journal_id=202812010-09-14T12:53:15ZMichael Hughes
<ul></ul><p>Same occurs on my server:</p>
<p>-redmine 1.0.1.devel<br />-mysql 14.12 Distrib 5.0.75 debian-linux-gnu<br />-ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]</p> Redmine - Defect #6388: New Subproject leads to a 404https://www.redmine.org/issues/6388?journal_id=202842010-09-14T13:45:43ZFelix Schäfer
<ul></ul><p>Michael Hughes wrote:</p>
<blockquote>
<p>Same occurs on my server:</p>
</blockquote>
<p><a class="wiki-page" href="https://www.redmine.org/projects/redmine/wiki/SubmittingBugs">SubmittingBugs</a>, in this case especially:</p>
<blockquote>
<p>the error stack trace that you should find in the log file if your report is about an error. The message displayed by the app (eg. ...An error occurred on the page you were trying to access. If you continue...) is useless here.</p>
</blockquote> Redmine - Defect #6388: New Subproject leads to a 404https://www.redmine.org/issues/6388?journal_id=203702010-09-16T11:38:26ZPerrier T
<ul></ul><blockquote>
<p><a class="wiki-page" href="https://www.redmine.org/projects/redmine/wiki/SubmittingBugs">SubmittingBugs</a>, in this case especially:</p>
<blockquote>
<p>the error stack trace that you should find in the log file if your report is about an error. The message displayed by the app (eg. ...An error occurred on the page you were trying to access. If you continue...) is useless here.</p>
</blockquote></blockquote>
<p>I've just updated to 4089 and it looks like this is a real issue.<br /><pre>
Processing ProjectsController#show (for 192.168.0.123 at 2010-09-16 13:36:40) [GET]
Parameters: {"action"=>"show", "id"=>"add", "parent_id"=>"bat", "controller"=>"projects"}
Rendering template within layouts/base
Rendering common/404 (404)
Filter chain halted as [:find_project] rendered_or_redirected.
Completed in 47ms (View: 47, DB: 0) | 404 Not Found [http://192.168.0.149/projects/add?parent_id=bat]
</pre><br />I hope this is what you mean by log. If anything else could be useful I'll try to post it too.</p> Redmine - Defect #6388: New Subproject leads to a 404https://www.redmine.org/issues/6388?journal_id=203792010-09-16T12:54:11ZFelix Schäfer
<ul><li><strong>Assignee</strong> set to <i>Eric Davis</i></li><li><strong>Affected version (unused)</strong> set to <i>devel</i></li></ul><p>I've spotted the bug, thanks. There's some (somewhat heavy) refactoring going on in the controllers, and some routes change due to that. For the impatient, the hotfix is quite simple:</p>
<pre><code class="diff syntaxhl"><span class="gh">diff --git a/app/views/projects/show.rhtml b/app/views/projects/show.rhtml
index 0ad9a11..cf3814b 100644
</span><span class="gd">--- a/app/views/projects/show.rhtml
</span><span class="gi">+++ b/app/views/projects/show.rhtml
</span><span class="p">@@ -1,6 +1,6 @@</span>
<div class="contextual">
<% if User.current.allowed_to?(:add_subprojects, @project) %>
<span class="gd">- <%= link_to l(:label_subproject_new), {:controller => 'projects', :action => 'add', :parent_id => @project}, :class => 'icon icon-add' %>
</span><span class="gi">+ <%= link_to l(:label_subproject_new), {:controller => 'projects', :action => 'new', :parent_id => @project}, :class => 'icon icon-add' %>
</span> <% end %>
</div>
</pre></code>
<p>For the git users among you, the commit can be found <a href="http://github.com/thegcat/redmine/commit/34dede25fb25057b7ed628f19203a4886896b6b1" class="external">on github</a> too.</p></pre> Redmine - Defect #6388: New Subproject leads to a 404https://www.redmine.org/issues/6388?journal_id=204092010-09-17T04:20:16ZEric Davis
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li><li><strong>Target version</strong> set to <i>1.0.2</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Fixed in <a class="changeset" title="Fix the new subproject link on project overview. #6388 Contributed by Felix Schäfer." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/4095">r4095</a>. Thanks for the patch Felix.</p> Redmine - Defect #6388: New Subproject leads to a 404https://www.redmine.org/issues/6388?journal_id=205122010-09-20T03:51:34ZEric Davis
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul><p>Merged into 1.0-stable for release in 1.0.2</p> Redmine - Defect #6388: New Subproject leads to a 404https://www.redmine.org/issues/6388?journal_id=222972010-11-11T15:26:46ZRoman aka iTUX
<ul></ul><p>redmine 1.0.3 - error still remains</p>
<p>Processing ProjectsController#show (for хх.хх.хх.хх at 2010-11-11 17:33:03) [GET]<br /> Parameters: {"action"=>"show", "id"=>"add", "parent_id"=>"documenting", "controller"=>"projects"}<br />Rendering template within layouts/base<br />Rendering common/404 (404)<br />Filter chain halted as [:find_project] rendered_or_redirected.<br />Completed in 14ms (View: 0, DB: 10) | 404 Not Found [<a class="external" href="http://redmine/projects/add?parent_id=documenting">http://redmine/projects/add?parent_id=documenting</a>]</p> Redmine - Defect #6388: New Subproject leads to a 404https://www.redmine.org/issues/6388?journal_id=223412010-11-12T19:51:59ZGabriel Gomiz
<ul></ul><p>I can confirm that version 1.0.3 has the error. It is weird because I've checked and the patch is applied... :S</p> Redmine - Defect #6388: New Subproject leads to a 404https://www.redmine.org/issues/6388?journal_id=223472010-11-13T08:32:07ZFelix Schäfer
<ul></ul><p>Make sure you don't have any plugins installed overriding the view with the old/broken link.</p> Redmine - Defect #6388: New Subproject leads to a 404https://www.redmine.org/issues/6388?journal_id=230932010-12-09T13:55:42ZCharlie Beckett
<ul></ul><p>I can confirm that the projects tree view plugin (<a class="external" href="http://www.redmine.org/boards/3/topics/4645">http://www.redmine.org/boards/3/topics/4645</a>) needs a subtle tweak to get this working.</p>
<p>Changing the related apps\index.rhtml file, action from 'add' to 'new' got my system up and running.</p>