Closed movihus closed 13 years ago
Al presionar "Agregar" adjunto cuando se redacta un correo y no se seleccionó ningún archivo.
Processing WebmailController#compose (for 192.168.16.13 at 2011-04-01 07:25:45) [POST] Parameters: {"op"=>"Agregar", "action"=>"compose", "mail"=>{"cc"=>"", "body"=>"Esta es una prueba de correo, para ver si funca esta onda", "content_type"=>"", "bcc"=>"", "from"=>"=?ISO-8859-1?Q?=20?= ", "subject"=>"Prueba de correo", "to"=>"paxthor@gmail.com", "toc"=>""}, "controller"=>"webmail"} IMAP authentication - PLAIN. NoMethodError (undefined method `size' for nil:NilClass): lib/webmail/cdfmail.rb:253:in `file=' app/controllers/webmail_controller.rb:143:in `compose' passenger (2.2.11) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request' passenger (2.2.11) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop' passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:418:in `start_request_handler' passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:358:in `handle_spawn_application' passenger (2.2.11) lib/phusion_passenger/utils.rb:184:in `safe_fork' passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:354:in `handle_spawn_application' passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `__send__' passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `main_loop' passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously' passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:163:in `start' passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:213:in `start' passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application' passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add' passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application' passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize' passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application' passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application' passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application' passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `__send__' passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `main_loop' passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously' Rendering /projects/mailr/public/500.html (500 Internal Server Error)
Arreglado en el controller. Faltaba validar.
Al presionar "Agregar" adjunto cuando se redacta un correo y no se seleccionó ningún archivo.