isfit/internal.isfit.org

Missing recipient in 'change password' (request new password)

Closed this issue · 2 comments

Denne kastes svært ofte.


At least one recipient (To, Cc or Bcc) is required to send a message
mail (2.4.4) lib/mail/network/delivery_methods/smtp.rb:104:in `deliver!'


Request:

  • URL : https://internal.isfit.org/mail_password
  • IP address: 129.241.185.165
  • Parameters: {"utf8"=>"✓", "authenticity_token"=>"uPhK/ovWi72yX6fgpbAnMiGJfZDPH863jorbGf0nz/8=", "username"=>"livenova", "commit"=>"Change password", "action"=>"mail_password", "controller"=>"sessions"}
  • Rails root: /home/srv/www/internal.isfit.org/releases/20120823155156
  • Timestamp : 2012-08-27 09:18:44 UTC

Session:

  • session id: [FILTERED]
  • data: {"session_id"=>"c81a2ff7bbda629c4c3f43cd1e00fa8a",
    "return_to"=>"https://internal.isfit.org/",
    "_csrf_token"=>"uPhK/ovWi72yX6fgpbAnMiGJfZDPH863jorbGf0nz/8="}

Environment:

  • CONTENT_LENGTH : 125
  • CONTENT_TYPE : application/x-www-form-urlencoded
  • DOCUMENT_ROOT : /srv/www/internal.isfit.org/current/public
  • HTTPS : on
  • HTTP_ACCEPT : text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
  • HTTP_ACCEPT_CHARSET : ISO-8859-1,utf-8;q=0.7,*;q=0.7
  • HTTP_ACCEPT_ENCODING : gzip, deflate
  • HTTP_ACCEPT_LANGUAGE : en-us,en;q=0.7,no;q=0.3
  • HTTP_CONNECTION : keep-alive
  • HTTP_COOKIE : __utma=210409357.916877264.1346058739.1346058739.1346058739.1; __utmb=210409357.2.10.1346058739; __utmc=210409357; __utmz=210409357.1346058739.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); _internal_isfit_org_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRkkiJWM4MWEyZmY3YmJkYTYyOWM0YzNmNDNjZDFlMDBmYThhBjsAVEkiDnJldHVybl90bwY7AEZJIiBodHRwczovL2ludGVybmFsLmlzZml0Lm9yZy8GOwBGSSIQX2NzcmZfdG9rZW4GOwBGSSIxdVBoSy9vdldpNzJ5WDZmZ3BiQW5NaUdKZlpEUEg4NjNqb3JiR2YwbnovOD0GOwBG--4a3613b8db7e1933b117f50ec761500cb588eb92; __utma=144011885.768312157.1346058824.1346058824.1346058824.1; __utmb=144011885.6.10.1346058824; __utmc=144011885; __utmz=144011885.1346058824.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided)
  • HTTP_HOST : internal.isfit.org
  • HTTP_REFERER : https://internal.isfit.org/forgot_password
  • HTTP_USER_AGENT : Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0) Gecko/20100101 Firefox/7.0
  • ORIGINAL_FULLPATH : /mail_password
  • PASSENGER_CONNECT_PASSWORD : [FILTERED]
  • PATH_INFO : /mail_password
  • QUERY_STRING :
  • REMOTE_ADDR : 129.241.185.165
  • REMOTE_PORT : 54595
  • REQUEST_METHOD : POST
  • REQUEST_URI : /mail_password
  • SCRIPT_NAME :
  • SERVER_ADDR : 129.241.210.24
  • SERVER_ADMIN : [no address given]
  • SERVER_NAME : internal.isfit.org
  • SERVER_PORT : 443
  • SERVER_PROTOCOL : HTTP/1.1
  • SERVER_SOFTWARE : Apache/2.2.14 (Ubuntu)
  • SSL_TLS_SNI : internal.isfit.org
  • _ : _
  • action_controller.instance : sessions#mail_password
  • action_dispatch.backtrace_cleaner : #Rails::BacktraceCleaner:0x0000000656bdb8
  • action_dispatch.cookies : #ActionDispatch::Cookies::CookieJar:0x0000000671a4c0
  • action_dispatch.logger : #ActiveSupport::TaggedLogging:0x00000004fd7ba0
  • action_dispatch.parameter_filter : [:password, /RAW_POST_DATA/]
  • action_dispatch.remote_ip : 129.241.185.165
  • action_dispatch.request.content_type : application/x-www-form-urlencoded
  • action_dispatch.request.formats : [text/html]
  • action_dispatch.request.parameters : {"utf8"=>"✓", "authenticity_token"=>"uPhK/ovWi72yX6fgpbAnMiGJfZDPH863jorbGf0nz/8=", "username"=>"livenova", "commit"=>"Change password", "action"=>"mail_password", "controller"=>"sessions"}
  • action_dispatch.request.path_parameters : {:action=>"mail_password", :controller=>"sessions"}
  • action_dispatch.request.query_parameters : {}
  • action_dispatch.request.request_parameters : {"utf8"=>"✓", "authenticity_token"=>"uPhK/ovWi72yX6fgpbAnMiGJfZDPH863jorbGf0nz/8=", "username"=>"livenova", "commit"=>"Change password"}
  • action_dispatch.request.unsigned_session_cookie: {"session_id"=>"c81a2ff7bbda629c4c3f43cd1e00fa8a", "return_to"=>"https://internal.isfit.org/", "_csrf_token"=>"uPhK/ovWi72yX6fgpbAnMiGJfZDPH863jorbGf0nz/8="}
  • action_dispatch.request_id : 9157d6d911b0f99e1dcf33c939ae107f
  • action_dispatch.routes : #ActionDispatch::Routing::RouteSet:0x00000004706508
  • action_dispatch.secret_token : 6d962b578883a443f73c7102a70158f057bcf5d89a98e2b1c038eaa2cfd095c254058b966938c10865a79283757b0c8a9b0bf8144d6ddffce25486792dd18a25
  • action_dispatch.show_detailed_exceptions : false
  • action_dispatch.show_exceptions : true
  • exception_notifier.options : {:sender_address=>""Exceptional bot" exceptional@isfit.org", :exception_recipients=>["exceptional@isfit.org"], :email_prefix=>"[Exception in internal.isfit.org] ", :sections=>["request", "session", "environment", "backtrace"], :background_sections=>["backtrace", "data"], :verbose_subject=>true, :normalize_subject=>false, :ignore_exceptions=>["CanCan::AccessDenied", "ActiveRecord::RecordNotFound", "AbstractController::ActionNotFound", "ActionController::RoutingError"], :ignore_crawlers=>["Googlebot", "bingbot"], :ignore_if=>#<Proc:0x0000000545de68@/srv/www/internal.isfit.org/shared/bundle/ruby/1.9.1/gems/exception_notification-2.6.1/lib/exception_notifier.rb:30 (lambda)>}
  • rack-cache.allow_reload : false
  • rack-cache.allow_revalidate : false
  • rack-cache.cache_key : Rack::Cache::Key
  • rack-cache.default_ttl : 0
  • rack-cache.entitystore : rails:/
  • rack-cache.ignore_headers : ["Set-Cookie"]
  • rack-cache.metastore : rails:/
  • rack-cache.private_headers : ["Authorization", "Cookie"]
  • rack-cache.storage : #Rack::Cache::Storage:0x00000005402d38
  • rack-cache.use_native_ttl : false
  • rack-cache.verbose : true
  • rack.errors : #IO:0x00000001616380
  • rack.input : #PhusionPassenger::Utils::RewindableInput:0x00000006727a58
  • rack.multiprocess : true
  • rack.multithread : false
  • rack.request.cookie_hash : {"__utma"=>"210409357.916877264.1346058739.1346058739.1346058739.1", "__utmb"=>"210409357.2.10.1346058739", "__utmc"=>"210409357", "__utmz"=>"210409357.1346058739.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)", "_internal_isfit_org_session"=>"BAh7CEkiD3Nlc3Npb25faWQGOgZFRkkiJWM4MWEyZmY3YmJkYTYyOWM0YzNmNDNjZDFlMDBmYThhBjsAVEkiDnJldHVybl90bwY7AEZJIiBodHRwczovL2ludGVybmFsLmlzZml0Lm9yZy8GOwBGSSIQX2NzcmZfdG9rZW4GOwBGSSIxdVBoSy9vdldpNzJ5WDZmZ3BiQW5NaUdKZlpEUEg4NjNqb3JiR2YwbnovOD0GOwBG--4a3613b8db7e1933b117f50ec761500cb588eb92"}
  • rack.request.cookie_string : __utma=210409357.916877264.1346058739.1346058739.1346058739.1; __utmb=210409357.2.10.1346058739; __utmc=210409357; __utmz=210409357.1346058739.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); _internal_isfit_org_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRkkiJWM4MWEyZmY3YmJkYTYyOWM0YzNmNDNjZDFlMDBmYThhBjsAVEkiDnJldHVybl90bwY7AEZJIiBodHRwczovL2ludGVybmFsLmlzZml0Lm9yZy8GOwBGSSIQX2NzcmZfdG9rZW4GOwBGSSIxdVBoSy9vdldpNzJ5WDZmZ3BiQW5NaUdKZlpEUEg4NjNqb3JiR2YwbnovOD0GOwBG--4a3613b8db7e1933b117f50ec761500cb588eb92; __utma=144011885.768312157.1346058824.1346058824.1346058824.1; __utmb=144011885.6.10.1346058824; __utmc=144011885; __utmz=144011885.1346058824.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided)
  • rack.request.form_hash : {"utf8"=>"✓", "authenticity_token"=>"uPhK/ovWi72yX6fgpbAnMiGJfZDPH863jorbGf0nz/8=", "username"=>"livenova", "commit"=>"Change password"}
  • rack.request.form_input : #PhusionPassenger::Utils::RewindableInput:0x00000006727a58
  • rack.request.form_vars : utf8=%E2%9C%93&authenticity_token=uPhK%2FovWi72yX6fgpbAnMiGJfZDPH863jorbGf0nz%2F8%3D&username=livenova&commit=Change+password
  • rack.request.query_hash : {}
  • rack.request.query_string :
  • rack.run_once : false
  • rack.session : {"session_id"=>"c81a2ff7bbda629c4c3f43cd1e00fa8a", "return_to"=>"https://internal.isfit.org/", "_csrf_token"=>"uPhK/ovWi72yX6fgpbAnMiGJfZDPH863jorbGf0nz/8="}
  • rack.session.options : {:path=>"/", :domain=>nil, :expire_after=>nil, :secure=>false, :httponly=>true, :defer=>false, :renew=>false, :coder=>#Rack::Session::Cookie::Base64::Marshal:0x0000000545dc38, :id=>"c81a2ff7bbda629c4c3f43cd1e00fa8a"}
  • rack.url_scheme : https
  • rack.version : [1, 0]
  • Process: 20591
  • Server : nova

Backtrace:

mail (2.4.4) lib/mail/network/delivery_methods/smtp.rb:104:in deliver!' mail (2.4.4) lib/mail/message.rb:2034:indo_delivery'
mail (2.4.4) lib/mail/message.rb:229:in block in deliver' actionmailer (3.2.2) lib/action_mailer/base.rb:414:inblock in deliver_mail'
activesupport (3.2.2) lib/active_support/notifications.rb:123:in block in instrument' activesupport (3.2.2) lib/active_support/notifications/instrumenter.rb:20:ininstrument'
activesupport (3.2.2) lib/active_support/notifications.rb:123:in instrument' actionmailer (3.2.2) lib/action_mailer/base.rb:412:indeliver_mail'
mail (2.4.4) lib/mail/message.rb:229:in deliver' app/controllers/sessions_controller.rb:41:inmail_password'
actionpack (3.2.2) lib/action_controller/metal/implicit_render.rb:4:in send_action' actionpack (3.2.2) lib/abstract_controller/base.rb:167:inprocess_action'
actionpack (3.2.2) lib/action_controller/metal/rendering.rb:10:in process_action' actionpack (3.2.2) lib/abstract_controller/callbacks.rb:18:inblock in process_action'
activesupport (3.2.2) lib/active_support/callbacks.rb:425:in _run__3451182095585863021__process_action__3422935413111538407__callbacks' activesupport (3.2.2) lib/active_support/callbacks.rb:405:in__run_callback'
activesupport (3.2.2) lib/active_support/callbacks.rb:385:in _run_process_action_callbacks' activesupport (3.2.2) lib/active_support/callbacks.rb:81:inrun_callbacks'
actionpack (3.2.2) lib/abstract_controller/callbacks.rb:17:in process_action' actionpack (3.2.2) lib/action_controller/metal/rescue.rb:29:inprocess_action'
actionpack (3.2.2) lib/action_controller/metal/instrumentation.rb:30:in block in process_action' activesupport (3.2.2) lib/active_support/notifications.rb:123:inblock in instrument'
activesupport (3.2.2) lib/active_support/notifications/instrumenter.rb:20:in instrument' activesupport (3.2.2) lib/active_support/notifications.rb:123:ininstrument'
actionpack (3.2.2) lib/action_controller/metal/instrumentation.rb:29:in process_action' actionpack (3.2.2) lib/action_controller/metal/params_wrapper.rb:205:inprocess_action'
activerecord (3.2.2) lib/active_record/railties/controller_runtime.rb:18:in process_action' actionpack (3.2.2) lib/abstract_controller/base.rb:121:inprocess'
actionpack (3.2.2) lib/abstract_controller/rendering.rb:45:in process' rack-mini-profiler (0.1.10) lib/mini_profiler/profiling_methods.rb:51:inblock in profile_method'
actionpack (3.2.2) lib/action_controller/metal.rb:203:in dispatch' actionpack (3.2.2) lib/action_controller/metal/rack_delegation.rb:14:indispatch'
actionpack (3.2.2) lib/action_controller/metal.rb:246:in block in action' actionpack (3.2.2) lib/action_dispatch/routing/route_set.rb:67:incall'
actionpack (3.2.2) lib/action_dispatch/routing/route_set.rb:67:in dispatch' actionpack (3.2.2) lib/action_dispatch/routing/route_set.rb:30:incall'
journey (1.0.4) lib/journey/router.rb:68:in block in call' journey (1.0.4) lib/journey/router.rb:56:ineach'
journey (1.0.4) lib/journey/router.rb:56:in call' actionpack (3.2.2) lib/action_dispatch/routing/route_set.rb:594:incall'
exception_notification (2.6.1) lib/exception_notifier.rb:34:in call' actionpack (3.2.2) lib/action_dispatch/middleware/best_standards_support.rb:17:incall'
rack (1.4.1) lib/rack/etag.rb:23:in call' rack (1.4.1) lib/rack/conditionalget.rb:35:incall'
actionpack (3.2.2) lib/action_dispatch/middleware/head.rb:14:in call' actionpack (3.2.2) lib/action_dispatch/middleware/params_parser.rb:21:incall'
actionpack (3.2.2) lib/action_dispatch/middleware/flash.rb:242:in call' rack (1.4.1) lib/rack/session/abstract/id.rb:205:incontext'
rack (1.4.1) lib/rack/session/abstract/id.rb:200:in call' actionpack (3.2.2) lib/action_dispatch/middleware/cookies.rb:338:incall'
activerecord (3.2.2) lib/active_record/query_cache.rb:64:in call' activerecord (3.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:443:incall'
actionpack (3.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in block in call' activesupport (3.2.2) lib/active_support/callbacks.rb:405:in_run__1777349545878884238__call__2713444209496691335__callbacks'
activesupport (3.2.2) lib/active_support/callbacks.rb:405:in __run_callback' activesupport (3.2.2) lib/active_support/callbacks.rb:385:in_run_call_callbacks'
activesupport (3.2.2) lib/active_support/callbacks.rb:81:in run_callbacks' actionpack (3.2.2) lib/action_dispatch/middleware/callbacks.rb:27:incall'
actionpack (3.2.2) lib/action_dispatch/middleware/remote_ip.rb:31:in call' actionpack (3.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:16:incall'
actionpack (3.2.2) lib/action_dispatch/middleware/show_exceptions.rb:56:in call' railties (3.2.2) lib/rails/rack/logger.rb:26:incall_app'
railties (3.2.2) lib/rails/rack/logger.rb:16:in call' actionpack (3.2.2) lib/action_dispatch/middleware/request_id.rb:22:incall'
rack (1.4.1) lib/rack/methodoverride.rb:21:in call' rack (1.4.1) lib/rack/runtime.rb:17:incall'
activesupport (3.2.2) lib/active_support/cache/strategy/local_cache.rb:72:in call' rack (1.4.1) lib/rack/lock.rb:15:incall'
rack-cache (1.2) lib/rack/cache/context.rb:136:in forward' rack-cache (1.2) lib/rack/cache/context.rb:143:inpass'
rack-cache (1.2) lib/rack/cache/context.rb:155:in invalidate' rack-cache (1.2) lib/rack/cache/context.rb:71:incall!'
rack-cache (1.2) lib/rack/cache/context.rb:51:in call' rack-mini-profiler (0.1.10) lib/mini_profiler/profiler.rb:209:incall'
railties (3.2.2) lib/rails/engine.rb:479:in call' railties (3.2.2) lib/rails/application.rb:220:incall'
railties (3.2.2) lib/rails/railtie/configurable.rb:30:in method_missing' /home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/rack/request_handler.rb:96:inprocess_request'
/home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/abstract_request_handler.rb:513:in accept_and_process_next_request' /home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/abstract_request_handler.rb:274:inmain_loop'
/home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/rack/application_spawner.rb:205:in start_request_handler' /home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/rack/application_spawner.rb:170:inblock in handle_spawn_application'
/home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/utils.rb:479:in safe_fork' /home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/rack/application_spawner.rb:165:inhandle_spawn_application'
/home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/abstract_server.rb:357:in server_main_loop' /home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/abstract_server.rb:206:instart_synchronously'
/home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/abstract_server.rb:180:in start' /home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/rack/application_spawner.rb:128:instart'
/home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/spawn_manager.rb:253:in block (2 levels) in spawn_rack_application' /home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/abstract_server_collection.rb:132:inlookup_or_add'
/home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/spawn_manager.rb:246:in block in spawn_rack_application' /home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/abstract_server_collection.rb:82:inblock in synchronize'
internal:prelude:10:in synchronize' /home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/abstract_server_collection.rb:79:insynchronize'
/home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/spawn_manager.rb:244:in spawn_rack_application' /home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/spawn_manager.rb:137:inspawn_application'
/home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/spawn_manager.rb:275:in handle_spawn_application' /home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/abstract_server.rb:357:inserver_main_loop'
/home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/abstract_server.rb:206:in start_synchronously' /home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/helper-scripts/passenger-spawn-server:99:in

'

Dette skyldes at vi ikke håndterer at private_email kan være NULL. Dette oppsto fordi det fantes en bug i opptakssystemet so ikke satt private_email skikkelig.

En løsning for nå er å implementere bedre error_handling for dette med oppfordirng om å sende mail til orakel@isfit.org.

Fikset denne i dag.