https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292009-02-19T09:47:06ZRedmineRedmine - Defect #2660: Cannot modify/delete project named "Documents"https://www.redmine.org/issues/2660?journal_id=74282009-02-19T09:47:06ZAusten Ito
<ul><li><strong>File</strong> <a href="/attachments/1547">documents.diff</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/1547/documents.diff">documents.diff</a> added</li></ul><p>This patch disables the creation of projects with a 'documents' identifier. The bug is caused by a route with higher precedence routing the request to edit a 'Documents' project to the Documents controller rather than the Projects controller.</p>
<p>From routes.rb:<br /> document_views.connect 'projects/:project_id/documents', :action => 'index'</p>
<p>Rather than fix the routes, I figured it made more sense to disable the creation of projects with a 'Documents' identifier altogether</p> Redmine - Defect #2660: Cannot modify/delete project named "Documents"https://www.redmine.org/issues/2660?journal_id=74292009-02-19T09:55:26ZAusten Ito
<ul></ul><p>I forgot to say what branch I'm working off of.</p>
<p>I pulled my changes from the master branch on github: <a class="external" href="http://github.com/edavis10/redmine/tree/master">http://github.com/edavis10/redmine/tree/master</a></p> Redmine - Defect #2660: Cannot modify/delete project named "Documents"https://www.redmine.org/issues/2660?journal_id=74942009-02-20T22:08:18ZEric Davis
<ul></ul><p>It looks like your patch has some unrelated code in it. Could you resubmit it or send me a GitHub pull request with the commits?</p> Redmine - Defect #2660: Cannot modify/delete project named "Documents"https://www.redmine.org/issues/2660?journal_id=75142009-02-21T07:56:25ZAusten Ito
<ul></ul><p>Eric Davis wrote:</p>
<blockquote>
<p>It looks like your patch has some unrelated code in it. Could you resubmit it or send me a GitHub pull request with the commits?</p>
</blockquote>
<p>I've sent you a pull request on github. Let me know if I did anything wrong.</p>
<p>Thanks,<br />austen</p> Redmine - Defect #2660: Cannot modify/delete project named "Documents"https://www.redmine.org/issues/2660?journal_id=75152009-02-21T09:54:09ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>I'm able to reproduce with 0.7 and 0.8 stable. But it's fixed in current trunk, maybe as a side effect of the URL changes.<br />Eric, are you able to reproduce?</p> Redmine - Defect #2660: Cannot modify/delete project named "Documents"https://www.redmine.org/issues/2660?journal_id=75302009-02-21T18:25:02ZEric Davis
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>7</i></li><li><strong>Assignee</strong> set to <i>Eric Davis</i></li></ul><p>I'll take a look at it and see if it's still an issue and if the RESTful urls fixed it. For anyone interested Austen Ito's fork is located at <a class="external" href="http://github.com/austenito/redmine/tree/defect_2660">http://github.com/austenito/redmine/tree/defect_2660</a> (great job naming your branch by the way).</p> Redmine - Defect #2660: Cannot modify/delete project named "Documents"https://www.redmine.org/issues/2660?journal_id=75652009-02-22T23:31:12ZKit Grose
<ul></ul><p>Thanks for your work on this issue. Aside from the fix (which appears to be progressing well), I understand this fix will only solve the issue in the future; can I get instructions on how I might be able to remedy the issue in my live repository (even if it requires manual deletion from the database).</p>
<p>Thanks!</p> Redmine - Defect #2660: Cannot modify/delete project named "Documents"https://www.redmine.org/issues/2660?journal_id=124282009-11-25T05:48:54ZEric Davis
<ul><li><strong>Status</strong> changed from <i>7</i> to <i>Closed</i></li><li><strong>Target version</strong> set to <i>0.9.0</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li><li><strong>Resolution</strong> set to <i>Wont fix</i></li></ul><p>The RESTful urls fixed this in trunk. I think it would be best to allow a project named "Documents", since with the url changes that project's url doesn't conflict with the documents module anymore.</p>