wrewolf / ovz-web-panel

Automatically exported from code.google.com/p/ovz-web-panel
0 stars 0 forks source link

since update to 2.1 - error creating template based on server - uninitialized constant VirtualServer::Shellwords #429

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce:
1. select server 
2. click tools - create template based on
3.

Actual result:

Processing Admin::VirtualServersController#create_template (for x.x.x.x at 
2012-05-04 08:07:42) [POST]
  Parameters: {"action"=>"create_template", "id"=>"25", "template_name"=>"20120504", "controller"=>"admin/virtual_servers"}
XML-RPC runtime error: HTTP-Error: 500 Internal Server Error 

NameError (uninitialized constant VirtualServer::Shellwords):
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:102:in `const_missing'
    /app/models/virtual_server.rb:330:in `create_template'
    /app/controllers/admin/virtual_servers_controller.rb:271:in `create_template'
    /vendor/rails/actionpack/lib/action_controller/base.rb:1253:in `send'
    /vendor/rails/actionpack/lib/action_controller/base.rb:1253:in `perform_action_without_filters'
    /vendor/rails/actionpack/lib/action_controller/filters.rb:617:in `call_filters'
    /vendor/rails/actionpack/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
    /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
    /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
    /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
    /vendor/rails/actionpack/lib/action_controller/rescue.rb:136:in `perform_action_without_caching'
    /vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in `perform_action'
    /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
    /vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache'
    /vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:12:in `perform_action'
    /vendor/rails/actionpack/lib/action_controller/base.rb:524:in `send'
    /vendor/rails/actionpack/lib/action_controller/base.rb:524:in `process_without_filters'
    /vendor/rails/actionpack/lib/action_controller/filters.rb:606:in `process_without_session_management_support'
    /vendor/rails/actionpack/lib/action_controller/session_management.rb:134:in `process'
    /vendor/rails/actionpack/lib/action_controller/base.rb:392:in `process'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:183:in `handle_request'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:110:in `dispatch_unlocked'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:123:in `dispatch'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:122:in `synchronize'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:122:in `dispatch'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:132:in `dispatch_cgi'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:39:in `dispatch'
    /vendor/rails/railties/lib/webrick_server.rb:103:in `handle_dispatch'
    /vendor/rails/railties/lib/webrick_server.rb:74:in `service'
    /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
    /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
    /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
    /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
    /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
    /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
    //script/server_ssl:68:in `dispatch'
    //script/server_ssl:75

Internal error: uninitialized constant VirtualServer::Shellwords

Expected result:
template created

Version of the product: 2.1

Server OS: fedora

Browser: ff

Additional information:

Original issue reported on code.google.com by greenpot...@gmail.com on 4 May 2012 at 3:33

GoogleCodeExporter commented 9 years ago

Original comment by sibprogrammer on 5 May 2012 at 12:32

GoogleCodeExporter commented 9 years ago
Fixed. See 
https://github.com/sibprogrammer/owp/commit/fca4deaa3211a9bcedac16b7be6291852f9e
cd86

Original comment by sibprogrammer on 5 May 2012 at 12:47

GoogleCodeExporter commented 9 years ago
Thanks!

Original comment by greenpot...@gmail.com on 7 May 2012 at 6:32