amartel/redmine_scm_extensions — Issue #6: Upload file don't work on Redmine 1.3.0
Author: toshidex
Created: 2012-01-12 16:42:37+00:00
State: open

Hello,

I use Redmine 1.3.0 I'm trying your plugin, however, the file upload fails. Here's the error:

Processing ScmExtensionsController # upload (for 160.120.200.91 at 1/12/2012 17:27:11) [GET]
Parameters: {"action" => "upload", "id" => "documentazionea-ziendale", "controller" => "scm_extensions", "path" => "Documenti_Server"}
Within rendering templates layouts / base
Rendering scm_extensions / upload
Completed in 81ms (View: 56, DB: 5) | 200 OK [http://ticket.home.lss/scm_extensions/upload/documentazionea-ziendale?path=Documenti_Server]
svn: invalid option: - depth
Type 'svn help' for usage.
svn: URL 'file: / / / opt / DocAziendali / Documenti_Server / CompunetPrint.jpeg' non-existent in That revision

Processing ScmExtensionsController # upload (for 160.120.200.91 at 1/12/2012 17:27:30) [POST]
Parameters: {"commit" => "Save", "action" => "upload", "authenticity_token" => "f5OFRPvB05IzqoBklhfkUJG3AaTveUj4bVVTx2AcISc =", "scm_extensions "=>{" comments "=>""," path "=> "root / Documenti_Server"}, "id" => "documentazionea-ziendale", "controller" => "scm_extensions", "1 "=>{" file attachments "=>{" "=>#< File: / tmp / RackMultipart.13222.0>}}}
Error parsing svn output: #
/ Usr/lib64/ruby/1.8/rexml/parsers/treeparser.rb: 28: in `parse '
/ Usr/lib64/ruby/1.8/rexml/document.rb: 205: in `build '
/ Usr/lib64/ruby/1.8/rexml/document.rb: 42: in `initialize '
/ Opt/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/xml_mini/rexml.rb: 17: in `new '
/ Opt/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/xml_mini/rexml.rb: 17: in `parse '
/ Opt/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/xml_mini.rb: 12: in `__send__ '
/ Opt/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/xml_mini.rb: 12: in `parse '
/ Opt/redmine-1.3.0/lib/redmine/scm/adapters/subversion_adapter.rb: 106: in `entries'
/ Opt/redmine-1.3.0/lib/redmine/scm/adapters/abstract_adapter.rb: 233: in `call '
/ Opt/redmine-1.3.0/lib/redmine/scm/adapters/abstract_adapter.rb: 233: in `shellout '
/ Opt/redmine-1.3.0/lib/redmine/scm/adapters/abstract_adapter.rb: 231: in `popen '
/ Opt/redmine-1.3.0/lib/redmine/scm/adapters/abstract_adapter.rb: 231: in `shellout '
/ Opt/redmine-1.3.0/lib/redmine/scm/adapters/abstract_adapter.rb: 210: in `shellout '
/ Opt/redmine-1.3.0/lib/redmine/scm/adapters/subversion_adapter.rb: 100: in `entries'
`Scm_extensions_upload '
`Each_value '
`Scm_extensions_upload '
`Scm_extensions_gettmpdir '
`Scm_extensions_upload '
`Upload '
/ Opt/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/base.rb: 1333: in `send '
/ Opt/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/base.rb: 1333: in `perform_action_without_filters'
/ Opt/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/filters.rb: 617: in `call_filters'
/ Opt/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/filters.rb: 610: in `perform_action_without_benchmark '
/ Opt/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/benchmarking.rb: 68: in `perform_action_without_rescue '
/ Opt/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb: 17: in `ms'
/ Opt/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb: 10: in `realtime '
/ Opt/redmine-1.3.0/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb: 17: in `ms'
/ Opt/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/benchmarking.rb: 68: in `perform_action_without_rescue '
/ Opt/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/rescue.rb: 160: in `perform_action_without_flash '
/ Opt/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/flash.rb: 151: in `perform_action '
/ Opt/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/base.rb: 532: in `send '
/ Opt/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/base.rb: 532: in `process_without_filters'
/ Opt/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/filters.rb: 606: in `process'
/ Opt/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/base.rb: 391: in `process'
/ Opt/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/base.rb: 386: in `call '
/ Opt/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb: 438: in `call '
/ Opt/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/dispatcher.rb: 87: in `dispatch '
/ Opt/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/dispatcher.rb: 121: in `_call '
/ Opt/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/dispatcher.rb: 130: in `build_middleware_stack '
/ Opt/redmine-1.3.0/vendor/rails/activerecord/lib/active_record/query_cache.rb: 29: in `call '
/ Opt/redmine-1.3.0/vendor/rails/activerecord/lib/active_record/query_cache.rb: 29: in `call '
`Cache '
/ Opt/redmine-1.3.0/vendor/rails/activerecord/lib/active_record/query_cache.rb: 9: in `cache '
/ Opt/redmine-1.3.0/vendor/rails/activerecord/lib/active_record/query_cache.rb: 28: in `call '
`Call '
/ Opt/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/string_coercion.rb: 25: in `call '
/ Usr/lib64/ruby/gems/1.8/gems/rack-1.1.1/lib/rack/head.rb: 9: in `call '
/ Usr/lib64/ruby/gems/1.8/gems/rack-1.1.1/lib/rack/methodoverride.rb: 24: in `call '
/ Opt/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/params_parser.rb: 15: in `call '
/ Opt/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb: 99: in `call '
/ Opt/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/failsafe.rb: 26: in `call '
/ Usr/lib64/ruby/gems/1.8/gems/rack-1.1.1/lib/rack/lock.rb: 11: in `call '
/ Usr/lib64/ruby/gems/1.8/gems/rack-1.1.1/lib/rack/lock.rb: 11: in `synchronize '
/ Usr/lib64/ruby/gems/1.8/gems/rack-1.1.1/lib/rack/lock.rb: 11: in `call '
/ Opt/redmine-1.3.0/vendor/rails/actionpack/lib/action_controller/dispatcher.rb: 106: in `call '
/ Opt/redmine-1.3.0/vendor/rails/railties/lib/rails/rack/static.rb: 31: in `call '
/ Usr/lib64/ruby/gems/1.8/gems/rack-1.1.1/lib/rack/urlmap.rb: 47: in `call '
/ Usr/lib64/ruby/gems/1.8/gems/rack-1.1.1/lib/rack/urlmap.rb: 41: in `each '
/ Usr/lib64/ruby/gems/1.8/gems/rack-1.1.1/lib/rack/urlmap.rb: 41: in `call '
/ Opt/redmine-1.3.0/vendor/rails/railties/lib/rails/rack/log_tailer.rb: 17: in `call '
/ Usr/lib64/ruby/gems/1.8/gems/rack-1.1.1/lib/rack/content_length.rb: 13: in `call '
/ Usr/lib64/ruby/gems/1.8/gems/rack-1.1.1/lib/rack/chunked.rb: 15: in `call '
/ Usr/lib64/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/connection.rb: 80: in `pre_process'
/ Usr/lib64/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/connection.rb: 78: in `catch '
/ Usr/lib64/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/connection.rb: 78: in `pre_process'
/ Usr/lib64/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/connection.rb: 53: in `process'
/ Usr/lib64/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/connection.rb: 38: in `receive_data '
/ Usr/lib64/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb: 256: in `run_machine '
/ Usr/lib64/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb: 256: in `run '
/ Usr/lib64/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/backends/base.rb: 61: in `start '
/ Usr/lib64/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/server.rb: 159: in `start '
/ Usr/lib64/ruby/gems/1.8/gems/rack-1.1.1/lib/rack/handler/thin.rb: 14: in `run '
/ Opt/redmine-1.3.0/vendor/rails/railties/lib/commands/server.rb: 111
/ Usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb: 31: in `gem_original_require '
/ Usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb: 31: in `require '
server: 3
...
No close tag for / lists / list
Line:
Position:
Last 80 unconsumed characters:
Output was:

Errno:: ENOENT (No such file or directory - / tmp/20120112-13222-jfaiip/CompunetPrint.jpeg):
vendor / plugins / redmine_scm_extensions / app / controllers / scm_extensions_controller.rb: 46: in `upload '
thin (1.3.1) lib / thin / connection.rb: 80: in `pre_process'
thin (1.3.1) lib / thin / connection.rb: 78: in `catch '
thin (1.3.1) lib / thin / connection.rb: 78: in `pre_process'
thin (1.3.1) lib / thin / connection.rb: 53: in `process'
thin (1.3.1) lib / thin / connection.rb: 38: in `receive_data '
eventmachine (12:12:10) lib / eventmachine.rb: 256: in `run_machine '
eventmachine (12:12:10) lib / eventmachine.rb: 256: in `run '
thin (1.3.1) lib / thin / backends / base.rb: 61: in `start '
thin (1.3.1) lib / thin / server.rb: 159: in `start '
server: 3

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

This plugin works fine with Redmine 1.1.3. It is an issue of core Redmine 1.3.0?

Sorry for my bad English, I speak very little: (.