{"id":58,"date":"2009-05-16T15:43:00","date_gmt":"2009-05-16T13:43:00","guid":{"rendered":"http:\/\/46.105.150.90\/tstnunix\/?p=58"},"modified":"2009-05-16T15:43:00","modified_gmt":"2009-05-16T13:43:00","slug":"redmine-remove-project-named-qdocumentsq","status":"publish","type":"post","link":"https:\/\/nunix.fr\/?p=58","title":{"rendered":"Redmine &#8211; Remove project named \u00ab\u00a0Documents\u00a0\u00bb"},"content":{"rendered":"<p>When you use <a href=\"http:\/\/www.redmine.org\/\">Redmine<\/a> (a web project management like Trac), you shouldn&rsquo;t create a project named \u00ab\u00a0Documents\u00a0\u00bb.<\/p>\n<p>This is an issue being corrected, but I did it. When you create a such project, you can&rsquo;t edit settings, remove it, and in some words : manage it.<\/p>\n<p>The only thing you want, is to reverse what you did. In my case, I just wanted to erase the project. I wonder how, because the web settings for this project wasn&rsquo;t working.<\/p>\n<p>My first thought was to erase it directly on Mysql, but it wasn&rsquo;t safe.\u00a0 Some side-effect may occurs with this solution.<\/p>\n<p>So here is was I did :<\/p>\n<p> <!--more--> <\/p>\n<ul>\n<li>\n<h1>\u00a0Detect the problem <\/h1>\n<\/li>\n<\/ul>\n<p>The problem is really simple to detect. You can&rsquo;t edit settings or access the project. <\/p>\n<p>\u00a0<\/p>\n<div style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-56\" src=\"http:\/\/46.105.150.90\/tstnunix\/wp-content\/uploads\/2009\/05\/2-404.png\" border=\"0\" alt=\"Screenshot of Documents-named project error\" title=\"Screenshot of Documents-named project error\" width=\"420\" height=\"139\" \/><\/div>\n<p><\/p>\n<ul>\n<li>\n<h1>\u00a0Correct it<br \/><\/h1>\n<\/li>\n<\/ul>\n<ul>\n<li>Modifiy the file $REDMINE\/config\/routes.rb<\/li>\n<\/ul>\n<p> {codecitation class=\u00a0\u00bbbrush: ruby;\u00a0\u00bb} map.connect &lsquo;issues\/:issue_id\/relations\/:action\/:id&rsquo;, :controller => &lsquo;issue_relations&rsquo;<br \/>\u00a0 map.connect &lsquo;projects\/:project_id\/issues\/:action&rsquo;, :controller => &lsquo;issues&rsquo;<br \/>\u00a0 map.connect &lsquo;projects\/:project_id\/news\/:action&rsquo;, :controller => &lsquo;news&rsquo;<\/p>\n<p># comment this line to disable Documents routing<br \/>#\u00a0 map.connect &lsquo;projects\/:project_id\/documents\/:action&rsquo;, :controller => &lsquo;documents&rsquo;<br \/>\u00a0 map.connect &lsquo;projects\/:project_id\/boards\/:action\/:id&rsquo;, :controller => &lsquo;boards&rsquo;<br \/>\u00a0 map.connect &lsquo;projects\/:project_id\/timelog\/:action\/:id&rsquo;, :controller => &lsquo;timelog&rsquo;, :project_id => \/.+\/<br \/>\u00a0 map.connect &lsquo;boards\/:board_id\/topics\/:action\/:id&rsquo;, :controller => &lsquo;messages&rsquo; {\/codecitation} <\/p>\n<ul>\n<li>Restart the server<\/li>\n<\/ul>\n<pre>$ $REDMINE\/script\/server -e PRODUCTION<\/pre>\n<ul>\n<li>\u00a0Delete the project from the web application<\/li>\n<\/ul>\n<p>Once the server is restarted, you can browse Redmine and delete your project. <\/p>\n<div style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-57\" src=\"http:\/\/46.105.150.90\/tstnunix\/wp-content\/uploads\/2009\/05\/1-sure.png\" border=\"0\" width=\"464\" height=\"140\" srcset=\"https:\/\/nunix.fr\/wp-content\/uploads\/2009\/05\/1-sure.png 706w, https:\/\/nunix.fr\/wp-content\/uploads\/2009\/05\/1-sure-300x91.png 300w\" sizes=\"auto, (max-width: 464px) 85vw, 464px\" \/><\/div>\n<ul>\n<li>Restore the file $REDMINE\/config\/routes.rb by uncommenting the line you commented.<\/li>\n<\/ul>\n<ul>\n<li>Restart the server and promise to not create another project named \u00ab\u00a0Documents\u00a0\u00bb ;){jcomments on}<\/li>\n<\/ul>\n<h1>Resources<\/h1>\n<ul>\n<li>http:\/\/www.redmine.org\/issues\/2660 <\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>When you use Redmine (a web project management like Trac), you shouldn&rsquo;t create a project named \u00ab\u00a0Documents\u00a0\u00bb. This is an issue being corrected, but I did it. When you create a such project, you can&rsquo;t edit settings, remove it, and in some words : manage it. The only thing you want, is to reverse what &hellip; <a href=\"https:\/\/nunix.fr\/?p=58\" class=\"more-link\">Continuer la lecture<span class=\"screen-reader-text\"> de &laquo;&nbsp;Redmine &#8211; Remove project named \u00ab\u00a0Documents\u00a0\u00bb&nbsp;&raquo;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":56,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-58","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-astuces"],"_links":{"self":[{"href":"https:\/\/nunix.fr\/index.php?rest_route=\/wp\/v2\/posts\/58","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nunix.fr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nunix.fr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nunix.fr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nunix.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=58"}],"version-history":[{"count":0,"href":"https:\/\/nunix.fr\/index.php?rest_route=\/wp\/v2\/posts\/58\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nunix.fr\/index.php?rest_route=\/wp\/v2\/media\/56"}],"wp:attachment":[{"href":"https:\/\/nunix.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=58"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nunix.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=58"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nunix.fr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=58"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}