Bug in Dropbox branch
Reported by Scott Miller | April 6th, 2010 @ 05:55 PM
I am running the new dropbox branch, which rocks. However, after importing one email, a bug showed up when trying to view the lead detail page:
ActionView::TemplateError (private method gsub' called for
nil:NilClass) on line [#1](/projects/26360/tickets/1 "Ticket #1")
of app/views/emails/_email.html.haml:<br/> 1: - truncated =
h(truncate(email.body.gsub("\n", " "), :length => 125 -
email.subject.size))<br/> 2: - formatted = simple_format
h(email.body)<br/> 3:<br/> 4: %li[email]{
highlightable(dom_id(email, :tools), :off => "#f2f2f2")
}
app/views/emails/_email.html.haml:1:in `_run_haml_app47views47emails47_email46html46haml_locals_email_object'
vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:11:in `render'
vendor/plugins/haml/rails/./lib/haml/helpers.rb:96:in `non_haml'
vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:11:in `render'
app/views/common/_timeline.html.haml:3:in `_run_haml_app47views47common47_timeline46html46haml_locals_object_timeline_timeline_counter'
vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:11:in `render'
vendor/plugins/haml/rails/./lib/haml/helpers.rb:96:in `non_haml'
vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:11:in `render'
app/views/leads/show.html.haml:20:in `_run_haml_app47views47leads47show46html46haml'
vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:13:in `render'
vendor/plugins/haml/rails/./lib/haml/helpers/action_view_mods.rb:13:in `render'
app/controllers/leads_controller.rb:47:in `show'
vendor/plugins/haml/rails/./lib/sass/plugin/rails.rb:19:in `process'
passenger (2.2.5) lib/phusion_passenger/rack/request_handler.rb:95:in `process_request'
passenger (2.2.5) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:378:in `start_request_handler'
passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:336:in `handle_spawn_application'
passenger (2.2.5) lib/phusion_passenger/utils.rb:183:in `safe_fork'
passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spawn_application'
passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:163:in `start'
passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:213:in `start'
passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
passenger (2.2.5) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
passenger (2.2.5) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
passenger (2.2.5) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
Comments and changes to this ticket
-
Scott Miller April 6th, 2010 @ 06:23 PM
After looking at it, the body of the email somehow is NULL in the database, must have been a parser problem. The bigger issue is that this breaks the lead view.
-
Mike Dvorkin April 8th, 2010 @ 09:20 PM
- State changed from new to resolved
(from [be90d496cada8bafec725703de1ad39e976f671f]) Make sure email body is string before using it with chain methods [#181 state:resolved] http://github.com/michaeldv/fat_free_crm/commit/be90d496cada8bafec7...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Ruby on Rails CRM platform for Web 2.0 and beyond
People watching this ticket
Tags
Referenced by
- 181 Bug in Dropbox branch (from [be90d496cada8bafec725703de1ad39e976f671f]) Make su...