sozialhelden / wheelmap-classic

:wheelchair: Legacy "classic" wheelmap.org (deprecated)
http://www.wheelmap.org
GNU Affero General Public License v3.0
47 stars 16 forks source link

URI must be ASCII Only #98

Open schultyy opened 8 years ago

schultyy commented 8 years ago

Some requests appear to contain non ASCII characters like:

These fail with URI::InvalidURIError: URI must be ascii only at:

/opt/rbenv/versions/2.2.2/lib/ruby/2.2.0/uri/rfc3986_parser.rb:20 in split
/opt/rbenv/versions/2.2.2/lib/ruby/2.2.0/uri/rfc3986_parser.rb:72 in parse
/opt/rbenv/versions/2.2.2/lib/ruby/2.2.0/uri/common.rb:226 in parse
app/helpers/application_helper.rb:64 in url_for_locale
app/views/relaunch/_header.html.haml:38 in block in _app_views_relaunch__header_html_haml__3015875721331593933_70057650406120
app/views/relaunch/_header.html.haml:37 in each
app/views/relaunch/_header.html.haml:37 in _app_views_relaunch__header_html_haml__3015875721331593933_70057650406120
/gems/actionpack-3.2.22/lib/action_view/template.rb:145 in block in render
/gems/activesupport-3.2.22/lib/active_support/notifications.rb:125 in instrument
/gems/actionpack-3.2.22/lib/action_view/template.rb:143 in render
/gems/actionpack-3.2.22/lib/action_view/renderer/partial_renderer.rb:265 in render_partial
/gems/actionpack-3.2.22/lib/action_view/renderer/partial_renderer.rb:238 in block in render
/gems/actionpack-3.2.22/lib/action_view/renderer/abstract_renderer.rb:38 in block in instrument
/gems/activesupport-3.2.22/lib/active_support/notifications.rb:123 in block in instrument
/gems/activesupport-3.2.22/lib/active_support/notifications/instrumenter.rb:20 in instrument
/gems/activesupport-3.2.22/lib/active_support/notifications.rb:123 in instrument
/gems/actionpack-3.2.22/lib/action_view/renderer/abstract_renderer.rb:38 in instrument
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:160 in block in instrument_with_newrelic
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/method_tracer.rb:69 in block in trace_execution_scoped
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/method_tracer_helpers.rb:82 in trace_execution_scoped
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/method_tracer.rb:67 in trace_execution_scoped
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:159 in instrument_with_newrelic
/gems/actionpack-3.2.22/lib/action_view/renderer/partial_renderer.rb:237 in render
/gems/actionpack-3.2.22/lib/action_view/renderer/renderer.rb:41 in render_partial
/gems/actionpack-3.2.22/lib/action_view/renderer/renderer.rb:15 in render
/gems/actionpack-3.2.22/lib/action_view/helpers/rendering_helper.rb:24 in render
/gems/haml-4.0.3/lib/haml/helpers/action_view_mods.rb:10 in block in render_with_haml
/gems/haml-4.0.3/lib/haml/helpers.rb:89 in non_haml
/gems/haml-4.0.3/lib/haml/helpers/action_view_mods.rb:10 in render_with_haml
app/views/layouts/relaunch.html.haml:39 in _app_views_layouts_relaunch_html_haml___81940587324482600_70057643019460
/gems/actionpack-3.2.22/lib/action_view/template.rb:145 in block in render
/gems/activesupport-3.2.22/lib/active_support/notifications.rb:125 in instrument
/gems/actionpack-3.2.22/lib/action_view/template.rb:143 in render
/gems/actionpack-3.2.22/lib/action_view/renderer/template_renderer.rb:59 in render_with_layout
/gems/actionpack-3.2.22/lib/action_view/renderer/template_renderer.rb:45 in render_template
/gems/actionpack-3.2.22/lib/action_view/renderer/template_renderer.rb:18 in render
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:145 in block in render_with_newrelic
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/method_tracer.rb:69 in block in trace_execution_scoped
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/method_tracer_helpers.rb:82 in trace_execution_scoped
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/method_tracer.rb:67 in trace_execution_scoped
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:144 in render_with_newrelic
/gems/actionpack-3.2.22/lib/action_view/renderer/renderer.rb:36 in render_template
/gems/actionpack-3.2.22/lib/action_view/renderer/renderer.rb:17 in render
/gems/actionpack-3.2.22/lib/abstract_controller/rendering.rb:110 in _render_template
/gems/actionpack-3.2.22/lib/action_controller/metal/streaming.rb:225 in _render_template
/gems/actionpack-3.2.22/lib/abstract_controller/rendering.rb:103 in render_to_body
/gems/actionpack-3.2.22/lib/action_controller/metal/renderers.rb:28 in render_to_body
/gems/actionpack-3.2.22/lib/action_controller/metal/compatibility.rb:50 in render_to_body
/gems/actionpack-3.2.22/lib/abstract_controller/rendering.rb:88 in render
/gems/actionpack-3.2.22/lib/action_controller/metal/rendering.rb:16 in render
/gems/actionpack-3.2.22/lib/action_controller/metal/instrumentation.rb:40 in block (2 levels) in render
/gems/activesupport-3.2.22/lib/active_support/core_ext/benchmark.rb:5 in block in ms
/opt/rbenv/versions/2.2.2/lib/ruby/2.2.0/benchmark.rb:303 in realtime
/gems/activesupport-3.2.22/lib/active_support/core_ext/benchmark.rb:5 in ms
/gems/actionpack-3.2.22/lib/action_controller/metal/instrumentation.rb:40 in block in render
/gems/actionpack-3.2.22/lib/action_controller/metal/instrumentation.rb:83 in cleanup_view_runtime
/gems/activerecord-3.2.22/lib/active_record/railties/controller_runtime.rb:24 in cleanup_view_runtime
/gems/actionpack-3.2.22/lib/action_controller/metal/instrumentation.rb:39 in render
app/controllers/home_controller.rb:14 in index
/gems/actionpack-3.2.22/lib/action_controller/metal/implicit_render.rb:4 in send_action
/gems/actionpack-3.2.22/lib/abstract_controller/base.rb:167 in process_action
/gems/actionpack-3.2.22/lib/action_controller/metal/rendering.rb:10 in process_action
/gems/actionpack-3.2.22/lib/abstract_controller/callbacks.rb:18 in block in process_action
/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:492 in block in _run__3740277911450283027__process_action__357275901821540153__callbacks
/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:215 in block in _conditional_callback_around_727
/gems/cacheable_flash-0.3.2/lib/cacheable_flash.rb:31 in write_flash_to_cookie
/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:214 in _conditional_callback_around_727
/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:436 in _run__3740277911450283027__process_action__357275901821540153__callbacks
/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405 in __run_callback
/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:385 in _run_process_action_callbacks
/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:81 in run_callbacks
/gems/actionpack-3.2.22/lib/abstract_controller/callbacks.rb:17 in process_action
/gems/actionpack-3.2.22/lib/action_controller/metal/rescue.rb:29 in process_action
/gems/actionpack-3.2.22/lib/action_controller/metal/instrumentation.rb:30 in block in process_action
/gems/activesupport-3.2.22/lib/active_support/notifications.rb:123 in block in instrument
/gems/activesupport-3.2.22/lib/active_support/notifications/instrumenter.rb:20 in instrument
/gems/activesupport-3.2.22/lib/active_support/notifications.rb:123 in instrument
/gems/actionpack-3.2.22/lib/action_controller/metal/instrumentation.rb:29 in process_action
/gems/actionpack-3.2.22/lib/action_controller/metal/params_wrapper.rb:207 in process_action
/gems/activerecord-3.2.22/lib/active_record/railties/controller_runtime.rb:18 in process_action
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:23 in block in process_action
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:353 in perform_action_with_newrelic_trace
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:22 in process_action
/gems/actionpack-3.2.22/lib/abstract_controller/base.rb:121 in process
/gems/actionpack-3.2.22/lib/abstract_controller/rendering.rb:45 in process
/gems/actionpack-3.2.22/lib/action_controller/metal.rb:203 in dispatch
/gems/actionpack-3.2.22/lib/action_controller/metal/rack_delegation.rb:14 in dispatch
/gems/actionpack-3.2.22/lib/action_controller/metal.rb:246 in block in action
/gems/actionpack-3.2.22/lib/action_dispatch/routing/route_set.rb:73 in call
/gems/actionpack-3.2.22/lib/action_dispatch/routing/route_set.rb:73 in dispatch
/gems/actionpack-3.2.22/lib/action_dispatch/routing/route_set.rb:36 in call
/gems/journey-1.0.4/lib/journey/router.rb:68 in block in call
/gems/journey-1.0.4/lib/journey/router.rb:56 in each
/gems/journey-1.0.4/lib/journey/router.rb:56 in call
/gems/actionpack-3.2.22/lib/action_dispatch/routing/route_set.rb:608 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/apipie-rails-0.3.1/lib/apipie/static_dispatcher.rb:65 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/omniauth-1.1.1/lib/omniauth/strategy.rb:177 in call!
/gems/omniauth-1.1.1/lib/omniauth/strategy.rb:157 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/apipie-rails-0.3.1/lib/apipie/extractor/recorder.rb:132 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/rack/agent_hooks.rb:30 in traced_call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/rack/browser_monitoring.rb:23 in traced_call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
lib/rack_i18n_locale_switcher.rb:32 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/warden-1.2.3/lib/warden/manager.rb:35 in block in call
/gems/warden-1.2.3/lib/warden/manager.rb:34 in catch
/gems/warden-1.2.3/lib/warden/manager.rb:34 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/actionpack-3.2.22/lib/action_dispatch/middleware/best_standards_support.rb:17 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/rack-1.4.7/lib/rack/etag.rb:23 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/rack-1.4.7/lib/rack/conditionalget.rb:25 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/actionpack-3.2.22/lib/action_dispatch/middleware/head.rb:14 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/actionpack-3.2.22/lib/action_dispatch/middleware/params_parser.rb:21 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/actionpack-3.2.22/lib/action_dispatch/middleware/flash.rb:242 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/rack-1.4.7/lib/rack/session/abstract/id.rb:210 in context
/gems/rack-1.4.7/lib/rack/session/abstract/id.rb:205 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/flash_cookie_session-1.1.3/lib/flash_cookie_session/middleware.rb:18 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/actionpack-3.2.22/lib/action_dispatch/middleware/cookies.rb:341 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/activerecord-3.2.22/lib/active_record/query_cache.rb:64 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract/connection_pool.rb:479 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/actionpack-3.2.22/lib/action_dispatch/middleware/callbacks.rb:28 in block in call
/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405 in _run__3560474612407227140__call__81198839061107222__callbacks
/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405 in __run_callback
/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:385 in _run_call_callbacks
/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:81 in run_callbacks
/gems/actionpack-3.2.22/lib/action_dispatch/middleware/callbacks.rb:27 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/rack-1.4.7/lib/rack/sendfile.rb:102 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/actionpack-3.2.22/lib/action_dispatch/middleware/remote_ip.rb:31 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/actionpack-3.2.22/lib/action_dispatch/middleware/debug_exceptions.rb:16 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/actionpack-3.2.22/lib/action_dispatch/middleware/show_exceptions.rb:56 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/railties-3.2.22/lib/rails/rack/logger.rb:32 in call_app
/gems/railties-3.2.22/lib/rails/rack/logger.rb:16 in block in call
/gems/activesupport-3.2.22/lib/active_support/tagged_logging.rb:22 in tagged
/gems/railties-3.2.22/lib/rails/rack/logger.rb:16 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/actionpack-3.2.22/lib/action_dispatch/middleware/request_id.rb:22 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/rack-1.4.7/lib/rack/methodoverride.rb:21 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/rack-1.4.7/lib/rack/runtime.rb:17 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/activesupport-3.2.22/lib/active_support/cache/strategy/local_cache.rb:72 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/rack-1.4.7/lib/rack/lock.rb:15 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/rack-cache-1.5.1/lib/rack/cache/context.rb:140 in forward
/gems/rack-cache-1.5.1/lib/rack/cache/context.rb:249 in fetch
/gems/rack-cache-1.5.1/lib/rack/cache/context.rb:189 in lookup
/gems/rack-cache-1.5.1/lib/rack/cache/context.rb:66 in call!
/gems/rack-cache-1.5.1/lib/rack/cache/context.rb:51 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/librato-rack-0.4.5/lib/librato/rack.rb:94 in process_request
/gems/librato-rack-0.4.5/lib/librato/rack.rb:64 in call
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/railties-3.2.22/lib/rails/engine.rb:484 in call
/gems/railties-3.2.22/lib/rails/application.rb:231 in call
/gems/railties-3.2.22/lib/rails/railtie/configurable.rb:30 in method_missing
/gems/newrelic_rpm-3.10.0.279/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67 in call
/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:576 in process_client
/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:670 in worker_loop
/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:525 in spawn_missing_workers
/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:140 in start
/gems/unicorn-4.8.3/bin/unicorn:126 in <top (required)>
[GEM_ROOT]/bin/unicorn:23 in load
[GEM_ROOT]/bin/unicorn:23 in <main>

Example params:

{
  "action": "index",
  "controller": "home",
  "lat": "50.40241362526519",
  "lon": "30.532023000000006",
  "q": "Kiev",
  "zoom": "10​"
}
schultyy commented 8 years ago

Another example: http://wheelmap.org/map?a=b&lat=44.32220078&lon=6.80690002&q=C\xC3\xAEme%20de%20la%20Bonette&zoom=17

Hoverbear commented 7 years ago

None of these queries appear to raise issues in the current development version. Can you please confirm this is still an issue?