Project

General

Profile

Problems DMSF

Added by Luis Serrano Aranda almost 12 years ago

I have problems with the plugin dmsf and redmine 1.4,
Could you helpme

This is the message when I try to enter in the dmsf tab:

ActionController::RoutingError in Dmsf#show

Showing vendor/plugins/redmine_dmsf/app/views/dmsf/show.html.erb where line #6 raised:

No route matches {:action=>"edit_root", :id=>#<Project id: 1, name: "Proyecto this Server", description: "Todo lo necesario para configurar este server", homepage: "", is_public: false, parent_id: nil, created_on: "2012-02-13 02:13:02", updated_on: "2012-04-02 14:53:06", identifier: "propru", status: 1, lft: 1, rgt: 2, dmsf_description: nil>}
Extracted source (around line #6):

3: <div class="contextual">
4: <% if User.current.allowed_to?(:folder_manipulation, Herve Harster) >
5: <
if @folder.nil? >
6: <
= link_to("", {:action => "edit_root", :id => Herve Harster},
7: :title => l(:link_edit, :title => l(:link_documents)), :class => "icon icon-edit") >  
8: <
else @folder.nil? >
9: <
= link_to("", {:action => "edit", :id => Herve Harster, :folder_id => @folder },
RAILS_ROOT: /var/redmine

Application Trace | Framework Trace | Full Trace
Request

Parameters:

{"id"=>"propru"}
Show session dump

Response

Headers:

{"Content-Type"=>"text/html",
"Cache-Control"=>"no-cache"}


Replies (18)

RE: Problems DMSF - Added by Alex A almost 12 years ago

Try edit routes.rb of this plugin like this

ActionController::Routing::Routes.draw do |map|
  map.resources :dmsf
  map.resources :dmsf_files
  map.connect 'dmsf/:id/:action', :controller => 'dmsf'
  map.connect 'dmsf/:id/dmsf_files/:action', :controller => 'dmsf_files'
  map.connect 'dmsf/:id/dmsf_state/:action', :controller => 'dmsf_state'
  map.connect 'dmsf/:id/dmsf_detail/:action', :controller => 'dmsf_detail'
  map.connect 'dmsf/:id/dmsf_upload/:action', :controller => 'dmsf_upload'
  map.connect 'dmsf/:id/dmsf_files_copy/:action', :controller => 'dmsf_files_copy'
  map.connect 'dmsf/:id/dmsf_folders_copy/:action', :controller => 'dmsf_folders_copy'
end

RE: Problems DMSF - Added by Luis Serrano Aranda almost 12 years ago

Thanks the plugin works !!!

RE: Problems DMSF - Added by Luis Serrano Aranda almost 12 years ago

What is the critery to rewrite the routes.rb ?

RE: Problems DMSF - Added by Florian ROBERT almost 12 years ago

Hello,

Thanks for this thread, I was in the same case than Luis and now after the modification suggested by Alex the plugin works but not completely,
Indeed When I click on the 'create folder' button I get an internal server error:

ActionView::TemplateError (No route matches {:action=>"new", :controller=>"dmsf_folders_copy", :id=>nil}) on line #4 of vendor/plugins/redmine_dmsf/app/views/dmsf/edit.html.erb:
1: <% html_title(l(:dmsf)) >
2:
3: <div class="contextual">
4: <
= link_to(image_tag("copy.png"), {:controller => :dmsf_folders_copy, :action => "new", :id => @folder }, :title => l(:title_copy)) >
5: </div>
6:
7: <
create = @pathfolder == @parent %>

vendor/plugins/redmine_dmsf/app/views/dmsf/edit.html.erb:4
vendor/plugins/redmine_dmsf/app/controllers/dmsf_controller.rb:146:in `new'
config/initializers/mongrel_cluster_with_rails_211_fix.rb:62:in `dispatch_cgi'

Rendering D:/REDMINE/apps/redmine/public/500.html (500 Internal Server Error)

Luis do you have the same case?

Alex do you have any suggestions that could help?

Regards.

RE: Problems DMSF - Added by Alex A almost 12 years ago

U must modify last record as

 map.connect 'dmsf/dmsf_folders_copy/:action', :controller => 'dmsf_folders_copy'

RE: Problems DMSF - Added by Florian ROBERT almost 12 years ago

It works!

Thanks a lot.

RE: Problems DMSF - Added by Luis Serrano Aranda almost 12 years ago

When I try to download a file (with zip gem) dsmf returns this error

no such file to load -- zip/zip
RAILS_ROOT: /var/redmine

Application Trace | Framework Trace | Full Trace
This error occurred while loading the following files:
/var/redmine/vendor/plugins/redmine_dmsf/lib/dmsf_zip
zip/zip
Request

Parameters:

{"files"=>["1"],
"id"=>"propru",
"authenticity_token"=>"psYyVoNO6mxaAFhhgTFWLhtTcAx90foGT/vA6P2qqxc="}
Show session dump

Response

Headers:

{"Cache-Control"=>"no-cache",
"Content-Type"=>""}

And this is my gem list

actionmailer (3.2.1, 3.2.0, 2.3.14)
actionpack (3.2.1, 3.2.0, 2.3.14)
activemodel (3.2.1, 3.2.0)
activerecord (3.2.1, 3.2.0, 2.3.14)
activeresource (3.2.1, 3.2.0, 2.3.14)
activesupport (3.2.1, 3.2.0, 2.3.14)
arel (3.0.0)
builder (3.0.0)
bundler (1.0.21)
coderay (1.0.6)
daemon_controller (1.0.0, 0.2.6)
erubis (2.7.0)
fastercsv (1.5.4)
fastthread (1.0.7)
hike (1.2.1)
i18n (0.6.0, 0.4.2)
journey (1.0.1, 1.0.0)
json (1.6.6, 1.6.5)
lockfile (2.1.0)
logrotate (1.2.1)
mail (2.4.1)
mime-types (1.17.2)
multi_json (1.0.4)
mysql (2.8.1)
net-ldap (0.3.1)
passenger (3.0.11)
pg (0.13.2)
polyglot (0.3.3)
rack (1.1.3, 1.1.2)
rack-cache (1.1)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (3.2.1, 3.2.0, 2.3.14)
railties (3.2.1, 3.2.0)
rake (0.9.2.2, 0.8.7)
rdoc (3.12, 2.4.3, 2.4.2)
rmagick (2.13.1)
ruby-openid (2.1.8)
rubygems-update (1.3.7)
rubytree (0.8.2)
rubyzip (0.9.7, 0.9.6.1)
sprockets (2.3.0, 2.1.2)
sqlite3 (1.3.6)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
tzinfo (0.3.33, 0.3.31)
zip (2.0.2)

RE: Problems DMSF - Added by Francesco Trigger almost 12 years ago

Same Problem for me with the ZIP

PLUS:

when trying to copy a folder:

@Processing DmsfController#new (for 213.168.116.17 at 2012-04-21 12:52:04) [GET]
Parameters: {"id"=>"dmsf_folders_copy", "controller"=>"dmsf", "action"=>"new"}

ActiveRecord::RecordNotFound (Couldn't find Project with identifier=dmsf_folders_copy):
app/models/project.rb:268:in `find'
vendor/plugins/redmine_dmsf/app/controllers/dmsf_controller.rb:308:in `find_project'
config/initializers/mongrel_cluster_with_rails_211_fix.rb:62:in `dispatch_cgi'

Rendering /opt/redmine/apps/redmine/public/404.html (404 Not Found)
@

@ Alex thanks for the help if you can fix that :)

Could you also explain how this things are connected? I am not really into ruby, but curious to learn new things and fix problems by myself.

:)
Thanks!

RE: Problems DMSF - Added by Alex A almost 12 years ago

Try this

ActionController::Routing::Routes.draw do |map|
  map.resources :dmsf
  map.resources :dmsf_files
  map.connect 'dmsf/:action', :controller => 'dmsf'
  map.connect 'dmsf/:id/dmsf_files/:action', :controller => 'dmsf_files'
  map.connect 'dmsf/:id/dmsf_state/:action', :controller => 'dmsf_state'
  map.connect 'dmsf/:id/dmsf_detail/:action', :controller => 'dmsf_detail'
  map.connect 'dmsf/:id/dmsf_upload/:action', :controller => 'dmsf_upload'
  map.connect 'dmsf/:id/dmsf_files_copy/:action', :controller => 'dmsf_files_copy'
  map.connect 'dmsf/dmsf_folders_copy/:action', :controller => 'dmsf_folders_copy'
end

RE: Problems DMSF - Added by Luis Serrano Aranda almost 12 years ago

This is the new error message

no such file to load -- zip/zip
RAILS_ROOT: /var/redmine

Application Trace | Framework Trace | Full Trace
This error occurred while loading the following files:
/var/redmine/vendor/plugins/redmine_dmsf/lib/dmsf_zip
zip/zip
Request

Parameters:

{"authenticity_token"=>"ob/uYi5Xvac56DEAsdm/V2umkDiCJInJ0mE/Sg46FrE=",
"id"=>"propru",
"download_entries"=>"Descarga",
"files"=>["1"]}
Show session dump

Response

Headers:

{"Content-Type"=>"",
"Cache-Control"=>"no-cache"}

RE: Problems DMSF - Added by Martin Corino almost 12 years ago

Luis Serrano Aranda wrote:

This is the new error message

no such file to load -- zip/zip
RAILS_ROOT: /var/redmine

This problem can be solved by adding a Gemfile to the root of the DMSF plugin folder.

The Gemfile contents should look like:

source :rubygems

gem 'rubyzip'

RE: Problems DMSF - Added by Martin Corino almost 12 years ago

Alex A wrote:

Try this
[...]

The following routes.rb has solved all problems (as far as I can tell) with Redmine 1.4.2 for me:

ActionController::Routing::Routes.draw do |map|
  map.resources :dmsf, :only => [:new, :create, :show, :edit], :member => {
    'edit_root' => :get,
    'entries_operation' => :post,
    'notify_activate' => :post,
    'notify_deactivate' => :post,
    'save_root' => :post,
    'delete_entries' => :post,
    'delete' => :post,
    'save' => :post
  }
  map.resources :dmsf_files
  map.connect 'dmsf/:id/dmsf_files/:action', :controller => 'dmsf_files'
  map.connect 'dmsf/:id/dmsf_state/:action', :controller => 'dmsf_state'
  map.connect 'dmsf/:id/dmsf_detail/:action', :controller => 'dmsf_detail'
  map.connect 'dmsf/:id/dmsf_upload/:action', :controller => 'dmsf_upload'
  map.connect 'dmsf/:id/dmsf_files_copy/:action', :controller => 'dmsf_files_copy'
  map.connect 'dmsf/dmsf_folders_copy/:action', :controller => 'dmsf_folders_copy'
end

RE: Problems DMSF - Added by Martin Corino almost 12 years ago

One addition to solve remaining issues with folder copying.
Change the route for dmsf_folders_copy (last line) to:

map.connect 'dmsf/:id/dmsf_folders_copy/:action', :controller => 'dmsf_folders_copy'

RE: Problems DMSF - Added by Rafi Greenberg almost 12 years ago

Has anyone been able to get the DMSF plugin to work on Redmine 2.x? Any help would be appreciated!

Thanks

RE: Problems DMSF - Added by Buzze Kr ies almost 12 years ago

Hi there,

for DMSF on Redmine 2: Take a look here: http://www.redmine.org/boards/3/topics/31060
Many thanks to Daniel.

RE: Problems DMSF - Added by Rafi Greenberg almost 12 years ago

Got it, thanks. Now I need the Embedded plugin ;)

RE: Problems DMSF - Added by Carsten Schurig almost 12 years ago

For Xapian I added this to the Gemfile

#Allows --without=xapian
group :xapian do
  gem "xapian-full", :require => false
end
    (1-18/18)