b-solution / redminerepositorycontrol

Automatically exported from code.google.com/p/redminerepositorycontrol
0 stars 0 forks source link

Repository with Redmine 2.0 project settings error #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I'm new user at Redmine. I recently update my redmine from 0.9.4 to 2.0.0, 
almost normal functions work perfectly.

Old redmine used plugin "Redmine Repository Controls plugin" from 
http://code.google.com/p/redminerepositorycontrol/, I download it and "rake 
db:migrate_plugins RAILS_ENV=production". Installed and config svn with apache 
fine, it work ok.

But when i go to settings of project had Repository, it show :

Page not found

The page you were trying to access doesn't exist or has been removed.

Back

An error log raise :

ActionController::RoutingError (No route matches 
{:controller=>"repository_controls", :action=>"edit", :id=>#<RepositoryControl 
id: 2, project_id: 2, role_id: 3, path: ".*", permissions: [:browse_repository, 
:commit_access]>}):
  app/helpers/application_helper.rb:43:in `link_to_if_authorized'
  app/views/repository_controls/_list.html.erb:36:in `block in _app_views_repository_controls__list_html_erb__1662466900537790002_237697560'
  app/views/repository_controls/_list.html.erb:14:in `each'
  app/views/repository_controls/_list.html.erb:14:in `_app_views_repository_controls__list_html_erb__1662466900537790002_237697560'
  app/views/common/_tabs.html.erb:24:in `block in _app_views_common__tabs_html_erb___3871910984475362546_243953920'
  app/views/common/_tabs.html.erb:23:in `each'
  app/views/common/_tabs.html.erb:23:in `_app_views_common__tabs_html_erb___3871910984475362546_243953920'
  app/helpers/application_helper.rb:231:in `render_tabs'
  app/views/projects/settings.html.erb:3:in `_app_views_projects_settings_html_erb__3240223926323606632_243909960'

Information about my system :

Environment:
  Redmine version                          2.0.0.stable
  Ruby version                             1.9.3 (x86_64-linux)
  Rails version                            3.2.3
  Environment                              production
  Database adapter                         Mysql2
Redmine plugins:
  redmine_repository_controls              0.1.0

#RAILS_ENV=production rake about

About your application's environment
Ruby version              1.9.3 (x86_64-linux)
RubyGems version          1.8.24
Rack version              1.4
Rails version             3.2.3
Active Record version     3.2.3
Action Pack version       3.2.3
Active Resource version   3.2.3
Action Mailer version     3.2.3
Active Support version    3.2.3
Middleware                Rack::Cache, ActionDispatch::Static, Rack::Lock, 
#<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x000000146b1db8>, 
Rack::Runtime, Rack::MethodOverride, ActionDispatch::RequestId, 
Rails::Rack::Logger, ActionDispatch::ShowExceptions, 
ActionDispatch::DebugExceptions, ActionDispatch::RemoteIp, 
ActionDispatch::Callbacks, 
ActiveRecord::ConnectionAdapters::ConnectionManagement, 
ActiveRecord::QueryCache, ActionDispatch::Cookies, 
ActionDispatch::Session::CookieStore, ActionDispatch::Flash, 
ActionDispatch::ParamsParser, ActionDispatch::Head, Rack::ConditionalGet, 
Rack::ETag, ActionDispatch::BestStandardsSupport, OpenIdAuthentication
Application root          /opt/apache/htdocs/redmine
Environment               production
Database adapter          mysql2
Database schema version   20120422150750

Thnks !

Original issue reported on code.google.com by tie...@gmail.com on 29 May 2012 at 3:21

GoogleCodeExporter commented 8 years ago
I just resolved this problem by :

DELETE FROM enabled_modules where name='repository_controls';

I really know why this affectly, but share here for who meet that problem like 
me.

Original comment by tie...@gmail.com on 30 May 2012 at 8:32