{"action":"created","issue":{"url":"https://api.github.com/repos/mysociety/alaveteli/issues/3328","repository_url":"https://api.github.com/repos/mysociety/alaveteli","labels_url":"https://api.github.com/repos/mysociety/alaveteli/issues/3328/labels{/name}","comments_url":"https://api.github.com/repos/mysociety/alaveteli/issues/3328/comments","events_url":"https://api.github.com/repos/mysociety/alaveteli/issues/3328/events","html_url":"https://github.com/mysociety/alaveteli/issues/3328","id":160833750,"number":3328,"title":"[ERROR] request#show (Encoding::ConverterNotFoundError) \"code converter not found (UTF-7 to UTF-8)","user":{"login":"garethrees","id":282788,"avatar_url":"https://avatars.githubusercontent.com/u/282788?v=3","gravatar_id":"","url":"https://api.github.com/users/garethrees","html_url":"https://github.com/garethrees","followers_url":"https://api.github.com/users/garethrees/followers","following_url":"https://api.github.com/users/garethrees/following{/other_user}","gists_url":"https://api.github.com/users/garethrees/gists{/gist_id}","starred_url":"https://api.github.com/users/garethrees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garethrees/subscriptions","organizations_url":"https://api.github.com/users/garethrees/orgs","repos_url":"https://api.github.com/users/garethrees/repos","events_url":"https://api.github.com/users/garethrees/events{/privacy}","received_events_url":"https://api.github.com/users/garethrees/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mysociety/alaveteli/labels/1%20-%20new","name":"1 - new","color":"e11d21"},{"url":"https://api.github.com/repos/mysociety/alaveteli/labels/czech%20republic","name":"czech republic","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-17T08:07:16Z","updated_at":"2016-06-17T08:46:18Z","closed_at":null,"body":"Error on IPV. They're on 0.24.1.4, which includes https://github.com/mysociety/alaveteli/commit/abfb6eb34831dfac3dbb1086ebb08ab9380c1b30 – the only commit I found RE UTF-7. \r\n\r\nRelated? https://github.com/mysociety/alaveteli/issues/2863\r\n\r\n```\r\nAn Encoding::ConverterNotFoundError occurred in request#show:\r\n\r\ncode converter not found (UTF-7 to UTF-8)\r\nlib/mail_handler/backends/mail_extensions.rb:51:in `encode'\r\n\r\n\r\n-------------------------------\r\nRequest:\r\n-------------------------------\r\n\r\n* URL : http://www.infoprovsechny.cz/request/zlodejna_o2?nocache=incoming-8463\r\n* IP address: FILTERED\r\n* Parameters: {\"nocache\"=>\"incoming-8463\", \"controller\"=>\"request\", \"action\"=>\"show\", \"url_title\"=>\"zlodejna_o2\"}\r\n* Rails root: /FILTERED/www.infoprovsechny.cz/releases/20160520113907\r\n* Timestamp : 2016-06-17 09:50:31 +0200\r\n\r\n-------------------------------\r\nBacktrace:\r\n-------------------------------\r\n\r\nlib/mail_handler/backends/mail_extensions.rb:51:in `encode'\r\nlib/mail_handler/backends/mail_extensions.rb:51:in `b_value_decode'\r\nmail (2.5.4) lib/mail/encodings.rb:245:in `b_value_decode'\r\nmail (2.5.4) lib/mail/encodings.rb:135:in `block (3 levels) in value_decode'\r\nmail (2.5.4) lib/mail/encodings.rb:128:in `map'\r\nmail (2.5.4) lib/mail/encodings.rb:128:in `block (2 levels) in value_decode'\r\nmail (2.5.4) lib/mail/encodings.rb:123:in `map'\r\nmail (2.5.4) lib/mail/encodings.rb:123:in `block in value_decode'\r\nmail (2.5.4) lib/mail/encodings.rb:122:in `map'\r\nmail (2.5.4) lib/mail/encodings.rb:122:in `value_decode'\r\nmail (2.5.4) lib/mail/encodings.rb:101:in `decode_encode'\r\nmail (2.5.4) lib/mail/fields/unstructured_field.rb:73:in `do_decode'\r\nmail (2.5.4) lib/mail/fields/unstructured_field.rb:55:in `decoded'\r\nmail (2.5.4) lib/mail/fields/unstructured_field.rb:59:in `default'\r\nmail (2.5.4) lib/mail/field.rb:167:in `method_missing'\r\nmail (2.5.4) lib/mail/message.rb:1186:in `default'\r\nmail (2.5.4) lib/mail/message.rb:1121:in `subject'\r\napp/models/incoming_message.rb:130:in `block in parse_raw_email!'\r\nactiverecord (3.2.22.2) lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'\r\nactiverecord (3.2.22.2) lib/active_record/transactions.rb:208:in `transaction'\r\napp/models/incoming_message.rb:127:in `parse_raw_email!'\r\napp/models/incoming_message.rb:172:in `mail_from'\r\napp/models/incoming_message.rb:177:in `safe_mail_from'\r\napp/models/incoming_message.rb:183:in `specific_from_name?'\r\napp/views/request/_incoming_correspondence.html.erb:8:in `_app_views_request__incoming_correspondence_html_erb__2479586976606580673_53896520'\r\nactionpack (3.2.22.2) lib/action_view/template.rb:145:in `block in render'\r\nactivesupport (3.2.22.2) lib/active_support/notifications.rb:125:in `instrument'\r\nactionpack (3.2.22.2) lib/action_view/template.rb:143:in `render'\r\nactionpack (3.2.22.2) lib/action_view/renderer/partial_renderer.rb:265:in `render_partial'\r\nactionpack (3.2.22.2) lib/action_view/renderer/partial_renderer.rb:238:in `block in render'\r\nactionpack (3.2.22.2) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'\r\nactivesupport (3.2.22.2) lib/active_support/notifications.rb:123:in `block in instrument'\r\nactivesupport (3.2.22.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\nactivesupport (3.2.22.2) lib/active_support/notifications.rb:123:in `instrument'\r\nactionpack (3.2.22.2) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'\r\nactionpack (3.2.22.2) lib/action_view/renderer/partial_renderer.rb:237:in `render'\r\nactionpack (3.2.22.2) lib/action_view/renderer/renderer.rb:46:in `render_partial'\r\nactionpack (3.2.22.2) lib/action_view/renderer/renderer.rb:20:in `render'\r\nactionpack (3.2.22.2) lib/action_view/helpers/rendering_helper.rb:24:in `render'\r\napp/views/request/_correspondence.html.erb:4:in `_app_views_request__correspondence_html_erb__4106921476725012527_51838640'\r\nactionpack (3.2.22.2) lib/action_view/template.rb:145:in `block in render'\r\nactivesupport (3.2.22.2) lib/active_support/notifications.rb:125:in `instrument'\r\nactionpack (3.2.22.2) lib/action_view/template.rb:143:in `render'\r\nactionpack (3.2.22.2) lib/action_view/renderer/partial_renderer.rb:265:in `render_partial'\r\nactionpack (3.2.22.2) lib/action_view/renderer/partial_renderer.rb:238:in `block in render'\r\nactionpack (3.2.22.2) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'\r\nactivesupport (3.2.22.2) lib/active_support/notifications.rb:123:in `block in instrument'\r\nactivesupport (3.2.22.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\nactivesupport (3.2.22.2) lib/active_support/notifications.rb:123:in `instrument'\r\nactionpack (3.2.22.2) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'\r\nactionpack (3.2.22.2) lib/action_view/renderer/partial_renderer.rb:237:in `render'\r\nactionpack (3.2.22.2) lib/action_view/renderer/renderer.rb:46:in `render_partial'\r\nactionpack (3.2.22.2) lib/action_view/renderer/renderer.rb:20:in `render'\r\nactionpack (3.2.22.2) lib/action_view/helpers/rendering_helper.rb:24:in `render'\r\napp/views/request/show.html.erb:169:in `block in _app_views_request_show_html_erb___275116125166584751_8796000'\r\nactiverecord (3.2.22.2) lib/active_record/associations/collection_proxy.rb:91:in `each'\r\nactiverecord (3.2.22.2) lib/active_record/associations/collection_proxy.rb:91:in `method_missing'\r\napp/views/request/show.html.erb:167:in `_app_views_request_show_html_erb___275116125166584751_8796000'\r\nactionpack (3.2.22.2) lib/action_view/template.rb:145:in `block in render'\r\nactivesupport (3.2.22.2) lib/active_support/notifications.rb:125:in `instrument'\r\nactionpack (3.2.22.2) lib/action_view/template.rb:143:in `render'\r\nactionpack (3.2.22.2) lib/action_view/renderer/template_renderer.rb:48:in `block (2 levels) in render_template'\r\nactionpack (3.2.22.2) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'\r\nactivesupport (3.2.22.2) lib/active_support/notifications.rb:123:in `block in instrument'\r\nactivesupport (3.2.22.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\nactivesupport (3.2.22.2) lib/active_support/notifications.rb:123:in `instrument'\r\nactionpack (3.2.22.2) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'\r\nactionpack (3.2.22.2) lib/action_view/renderer/template_renderer.rb:47:in `block in render_template'\r\nactionpack (3.2.22.2) lib/action_view/renderer/template_renderer.rb:55:in `render_with_layout'\r\nactionpack (3.2.22.2) lib/action_view/renderer/template_renderer.rb:46:in `render_template'\r\nactionpack (3.2.22.2) lib/action_view/renderer/template_renderer.rb:18:in `render'\r\nactionpack (3.2.22.2) lib/action_view/renderer/renderer.rb:41:in `render_template'\r\nactionpack (3.2.22.2) lib/action_view/renderer/renderer.rb:22:in `render'\r\nactionpack (3.2.22.2) lib/abstract_controller/rendering.rb:110:in `_render_template'\r\nactionpack (3.2.22.2) lib/action_controller/metal/streaming.rb:225:in `_render_template'\r\nactionpack (3.2.22.2) lib/abstract_controller/rendering.rb:103:in `render_to_body'\r\nactionpack (3.2.22.2) lib/action_controller/metal/renderers.rb:28:in `render_to_body'\r\nactionpack (3.2.22.2) lib/action_controller/metal/compatibility.rb:50:in `render_to_body'\r\nactionpack (3.2.22.2) lib/abstract_controller/rendering.rb:88:in `render'\r\nactionpack (3.2.22.2) lib/action_controller/metal/rendering.rb:16:in `render'\r\nactionpack (3.2.22.2) lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'\r\nactivesupport (3.2.22.2) lib/active_support/core_ext/benchmark.rb:5:in `block in ms'\r\n/usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'\r\nactivesupport (3.2.22.2) lib/active_support/core_ext/benchmark.rb:5:in `ms'\r\nactionpack (3.2.22.2) lib/action_controller/metal/instrumentation.rb:40:in `block in render'\r\nactionpack (3.2.22.2) lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime'\r\nactiverecord (3.2.22.2) lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'\r\nactionpack (3.2.22.2) lib/action_controller/metal/instrumentation.rb:39:in `render'\r\napp/controllers/request_controller.rb:131:in `block (3 levels) in show'\r\nactionpack (3.2.22.2) lib/action_controller/metal/mime_responds.rb:196:in `call'\r\nactionpack (3.2.22.2) lib/action_controller/metal/mime_responds.rb:196:in `respond_to'\r\napp/controllers/request_controller.rb:130:in `block in show'\r\ni18n (0.7.0) lib/i18n.rb:257:in `with_locale'\r\napp/controllers/request_controller.rb:79:in `show'\r\nactionpack (3.2.22.2) lib/action_controller/metal/implicit_render.rb:4:in `send_action'\r\nactionpack (3.2.22.2) lib/abstract_controller/base.rb:167:in `process_action'\r\nactionpack (3.2.22.2) lib/action_controller/metal/rendering.rb:10:in `process_action'\r\nactionpack (3.2.22.2) lib/abstract_controller/callbacks.rb:18:in `block in process_action'\r\nactivesupport (3.2.22.2) lib/active_support/callbacks.rb:602:in `block in _run__1724251462244170111__process_action__63066031993410999__callbacks'\r\nactivesupport (3.2.22.2) lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_1315'\r\napp/controllers/application_controller.rb:110:in `record_memory'\r\nactivesupport (3.2.22.2) lib/active_support/callbacks.rb:214:in `_conditional_callback_around_1315'\r\nactivesupport (3.2.22.2) lib/active_support/callbacks.rb:601:in `_run__1724251462244170111__process_action__63066031993410999__callbacks'\r\nactivesupport (3.2.22.2) lib/active_support/callbacks.rb:405:in `__run_callback'\r\nactivesupport (3.2.22.2) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'\r\nactivesupport (3.2.22.2) lib/active_support/callbacks.rb:81:in `run_callbacks'\r\nactionpack (3.2.22.2) lib/abstract_controller/callbacks.rb:17:in `process_action'\r\nactionpack (3.2.22.2) lib/action_controller/metal/rescue.rb:29:in `process_action'\r\nactionpack (3.2.22.2) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'\r\nactivesupport (3.2.22.2) lib/active_support/notifications.rb:123:in `block in instrument'\r\nactivesupport (3.2.22.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\nactivesupport (3.2.22.2) lib/active_support/notifications.rb:123:in `instrument'\r\nactionpack (3.2.22.2) lib/action_controller/metal/instrumentation.rb:29:in `process_action'\r\nactionpack (3.2.22.2) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'\r\nactiverecord (3.2.22.2) lib/active_record/railties/controller_runtime.rb:18:in `process_action'\r\nactionpack (3.2.22.2) lib/abstract_controller/base.rb:121:in `process'\r\nactionpack (3.2.22.2) lib/abstract_controller/rendering.rb:45:in `process'\r\nactionpack (3.2.22.2) lib/action_controller/metal.rb:203:in `dispatch'\r\nactionpack (3.2.22.2) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'\r\nactionpack (3.2.22.2) lib/action_controller/metal.rb:246:in `block in action'\r\nactionpack (3.2.22.2) lib/action_dispatch/routing/route_set.rb:73:in `call'\r\nactionpack (3.2.22.2) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'\r\nactionpack (3.2.22.2) lib/action_dispatch/routing/route_set.rb:36:in `call'\r\njourney (1.0.4) lib/journey/router.rb:68:in `block in call'\r\njourney (1.0.4) lib/journey/router.rb:56:in `each'\r\njourney (1.0.4) lib/journey/router.rb:56:in `call'\r\nactionpack (3.2.22.2) lib/action_dispatch/routing/route_set.rb:608:in `call'\r\nexception_notification (3.0.1) lib/exception_notifier.rb:41:in `call'\r\nactionpack (3.2.22.2) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'\r\nrack (1.4.7) lib/rack/etag.rb:23:in `call'\r\nrack (1.4.7) lib/rack/conditionalget.rb:25:in `call'\r\nactionpack (3.2.22.2) lib/action_dispatch/middleware/head.rb:14:in `call'\r\nactionpack (3.2.22.2) lib/action_dispatch/middleware/params_parser.rb:21:in `call'\r\nactionpack (3.2.22.2) lib/action_dispatch/middleware/flash.rb:242:in `call'\r\nrack (1.4.7) lib/rack/session/abstract/id.rb:210:in `context'\r\nrack (1.4.7) lib/rack/session/abstract/id.rb:205:in `call'\r\nactionpack (3.2.22.2) lib/action_dispatch/middleware/cookies.rb:341:in `call'\r\nlib/strip_empty_sessions.rb:13:in `call'\r\nactiverecord (3.2.22.2) lib/active_record/query_cache.rb:64:in `call'\r\nactiverecord (3.2.22.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'\r\nactionpack (3.2.22.2) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'\r\nactivesupport (3.2.22.2) lib/active_support/callbacks.rb:405:in `_run__1907836604457939814__call__2538406635481559692__callbacks'\r\nactivesupport (3.2.22.2) lib/active_support/callbacks.rb:405:in `__run_callback'\r\nactivesupport (3.2.22.2) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'\r\nactivesupport (3.2.22.2) lib/active_support/callbacks.rb:81:in `run_callbacks'\r\nactionpack (3.2.22.2) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\r\nactionpack (3.2.22.2) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'\r\nactionpack (3.2.22.2) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'\r\nactionpack (3.2.22.2) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'\r\nrailties (3.2.22.2) lib/rails/rack/logger.rb:32:in `call_app'\r\nrailties (3.2.22.2) lib/rails/rack/logger.rb:16:in `block in call'\r\nactivesupport (3.2.22.2) lib/active_support/tagged_logging.rb:22:in `tagged'\r\nrailties (3.2.22.2) lib/rails/rack/logger.rb:16:in `call'\r\nactionpack (3.2.22.2) lib/action_dispatch/middleware/request_id.rb:22:in `call'\r\nrack (1.4.7) lib/rack/methodoverride.rb:21:in `call'\r\nrack (1.4.7) lib/rack/runtime.rb:17:in `call'\r\nactivesupport (3.2.22.2) lib/active_support/cache/strategy/local_cache.rb:72:in `call'\r\nrack (1.4.7) lib/rack/lock.rb:15:in `call'\r\nactionpack (3.2.22.2) lib/action_dispatch/middleware/static.rb:83:in `call'\r\nrack-utf8_sanitizer (1.3.0) lib/rack/utf8_sanitizer.rb:15:in `call'\r\nrailties (3.2.22.2) lib/rails/engine.rb:484:in `call'\r\nrailties (3.2.22.2) lib/rails/application.rb:231:in `call'\r\nrailties (3.2.22.2) lib/rails/railtie/configurable.rb:30:in `method_missing'\r\n/usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:74:in `process_request'\r\n/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:141:in `accept_and_process_next_request'\r\n/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:109:in `main_loop'\r\n/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:455:in `block (3 levels) in start_threads'\r\n```"},"comment":{"url":"https://api.github.com/repos/mysociety/alaveteli/issues/comments/226714862","html_url":"https://github.com/mysociety/alaveteli/issues/3328#issuecomment-226714862","issue_url":"https://api.github.com/repos/mysociety/alaveteli/issues/3328","id":226714862,"user":{"login":"garethrees","id":282788,"avatar_url":"https://avatars.githubusercontent.com/u/282788?v=3","gravatar_id":"","url":"https://api.github.com/users/garethrees","html_url":"https://github.com/garethrees","followers_url":"https://api.github.com/users/garethrees/followers","following_url":"https://api.github.com/users/garethrees/following{/other_user}","gists_url":"https://api.github.com/users/garethrees/gists{/gist_id}","starred_url":"https://api.github.com/users/garethrees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garethrees/subscriptions","organizations_url":"https://api.github.com/users/garethrees/orgs","repos_url":"https://api.github.com/users/garethrees/repos","events_url":"https://api.github.com/users/garethrees/events{/privacy}","received_events_url":"https://api.github.com/users/garethrees/received_events","type":"User","site_admin":false},"created_at":"2016-06-17T08:46:18Z","updated_at":"2016-06-17T08:46:18Z","body":"Its the `Subject:` header\r\n\r\n```\r\nFrom bob@localhost Fri Jun 17 08:39:09 2016\r\nReceived: from bob@localhost ([213.175.37.187]:52820)\r\n\tby vmd11.farma.gigaserver.cz with esmtp (Exim 4.80)\r\n\t(envelope-from <bob@localhost>)\r\n\tid 1bDnQr-0006YM-89\r\n\tfor foi+request-1234-jnc73ba@localhost; Fri, 17 Jun 2016 08:39:09 +0200\r\nReceived: from ESCAS02.NKU.CZ (10.10.101.133) by ESEDGE01.nku.cz\r\n (10.21.32.247) with Microsoft SMTP Server (TLS) id 14.3.235.1; Fri, 17 Jun\r\n 2016 08:39:08 +0200\r\nReceived: from (10.10.101.158) by bob@localhost (10.10.101.153) with\r\n Microsoft SMTP Server id 14.3.235.1; Fri, 17 Jun 2016 08:39:08 +0200\r\nX-Mailer: PILSCOM smtp mailer\r\nFrom: =?utf-7?b?RXBvZGF0ZWxuYQ==?= <bob@localhost>\r\nTo: =?utf-7?b?S2xvdWRh?= <foi+request-1234-jnc73ba@localhost>\r\nMIME-Version: 1.0\r\nSubject: =?utf-7?b?VmErQVdFLWUgZW1haWxvditBT0UtIHpwcitBT0UtdmEgYnlsYSBwK0FWay1ldnphdGE=?=\r\nDate: Fri, 17 Jun 2016 08:39:00 +0200\r\nContent-Type: multipart/signed; boundary=\"--Next_000\";\r\n\tprotocol=\"application/x-pkcs7-signature\"; micalg=SHA1\r\nMessage-ID: <7d042199-6765-4c9c-a77e-bb0ba02b92b2@ESCAS02.NKU.CZ>\r\n```"}}
{"actor":{"display_login":"garethrees"}}