kayamaox / redmine-dmsf

Automatically exported from code.google.com/p/redmine-dmsf
0 stars 0 forks source link

Deletion or download not possible if documents selected by checkbox #193

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. klick on 1 or more checkboxes of uploaded documents
2. klick on button 'download' or 'email'

Expected: download is started. 
Instead I get a error message on white background:
 Internal error
 An error occurred on the page you were trying to access.
 If you continue to experience problems please contact your 
 Redmine administrator for assistance.
 If you are the Redmine administrator, check your log files 
 for details about the error.

In redmines logfile production.log I got this message (and others):

Processing DmsfController#entries_operation (for 109.193.252.135 at 2012-02-03 
20:09:45) [POST]
  Parameters: {"folder_id"=>"1", "files"=>["2"], "authenticity_token"=>"TUSo8ZEB1QMQvbC5yQG1gLOHk1ZV9DUKx/HyQF2Ohcc=", "action"=>"en
tries_operation", "id"=>"dest-internal", "download_entries"=>"Download", 
"controller"=>"dmsf"}

MissingSourceFile (no such file to load -- zip/zip):
  vendor/plugins/redmine_dmsf/app/controllers/dmsf_controller.rb:266:in `download_entries'
  vendor/plugins/redmine_dmsf/app/controllers/dmsf_controller.rb:57:in `entries_operation'
  config/initializers/mongrel_cluster_with_rails_211_fix.rb:62:in `dispatch_cgi'

Rendering /opt/redmine-1.3.0-1/apps/redmine/public/500.html (500 Internal 
Server Error)

'Delete' works on checked documents.

Used versions:
DMSF: 1.2.2, all recommended software installed:
sudo apt-get install libxapian-ruby1.8 xapian-omega libxapian-dev xpdf antiword 
unzip
Redmine: 1.3.0 installed on bitnami stack, 
Server OS: Ubuntu-1004-lucid32
Browser: Firefox 10
Client operating system: Windows XP Prof SP3

Plugins see attached file

Original issue reported on code.google.com by Dieter.E...@dest.de on 3 Feb 2012 at 7:25

Attachments:

GoogleCodeExporter commented 8 years ago
I had the same problem, and it was caused by missing gems.
I've installed gems:
 gem install zip
 gem install rubyzip

Then added the following at the end of Gemfile (in Redmine installation dir):
 gem "zip"
 gem "rubyzip"

Restarted HTTP daemon and now it works fine.
Actually, I'm not sure if both gems are needed - maybe just one of them is 
enough.

Original comment by maciej.m...@gmail.com on 22 Feb 2012 at 10:27

GoogleCodeExporter commented 8 years ago
Ah, thank you, now it works.
('adding text to Gemfile' ?? didn't find it, although it works!).

Original comment by Dieter.E...@dest.de on 22 Feb 2012 at 11:13