プロジェクト

全般

プロフィール

Vote #64583

完了

Cannot modify/delete project named "Documents"

Admin Redmine さんが4年以上前に追加. 4年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Projects_11
対象バージョン:
開始日:
2009/02/04
期日:
進捗率:

100%

予定工数:
category_id:
11
version_id:
6
issue_org_id:
2660
author_id:
3782
assigned_to_id:
5
comments:
8
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
5
ステータス-->[Closed]

説明

We've created a project named "Documents" (identifier: documents) as a subproject of another project.

That project doesn't appear in the "Jump to project" drop-down, but does appear on the Projects page. The URL of the project (/projects/show/documents) triggers a 404, as does any attempt to delete the project from the administration section.

The expected behaviour is that the documents project either works as any other project, or isn't able to be created at all. If the solution is a fix to the latter, please instruct how I might be able to remove the project myself.

Database: MySQL v5.0
Ruby: v1.8.6 (i386-mswin32)
Rails: v2.0.2
OS: Windows Server 2003 Standard x64 Edition SP2


journals

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.

From routes.rb:
document_views.connect 'projects/:project_id/documents', :action => 'index'

Rather than fix the routes, I figured it made more sense to disable the creation of projects with a 'Documents' identifier altogether

--------------------------------------------------------------------------------
I forgot to say what branch I'm working off of.

I pulled my changes from the master branch on github: http://github.com/edavis10/redmine/tree/master
--------------------------------------------------------------------------------
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?
--------------------------------------------------------------------------------
Eric Davis wrote:
> 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?

I've sent you a pull request on github. Let me know if I did anything wrong.

Thanks,
austen

--------------------------------------------------------------------------------
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.
Eric, are you able to reproduce?
--------------------------------------------------------------------------------
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 http://github.com/austenito/redmine/tree/defect_2660 (great job naming your branch by the way).
--------------------------------------------------------------------------------
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).

Thanks!
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0