[DRE-maint] Bug#678515: redmine: 500 Internal Server Error. Incompatible character encodings: ASCII-8BIT and UTF-8

midget at sword.midworld-networks.com midget at sword.midworld-networks.com
Fri Jun 22 11:49:04 UTC 2012


Package: redmine
Version: 1.4.3+dfsg1-1
Severity: important

Dear Maintainer,

It seems that redmine is not properly handling characters as á, é, í, ó, ú, ñ when they are part of issue subject, issue description, commit message, etc...


When this occurs, this message is displayed:


Internal error

An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine
administrator for assistance.

If you are the Redmine administrator, check your log files for details
about the error.


and you can read in /var/log/redmine/default/fastcgi.crash.log:


Processing ActivitiesController#index (for <IP_ADDRESS> at 2012-06-22 13:24:18) [GET]
  Parameters: {"controller"=>"activities", "action"=>"index", "id"=>"<MY_PROJECT>"}
Rendering template within layouts/base
Rendering activities/index

ActionView::TemplateError (incompatible character encodings: ASCII-8BIT and UTF-8) on line #24 of app/views/activities/index.html.erb:
21: <%= content_tag('p', l(:label_no_data), :class => 'nodata') if @events_by_day.empty? %>
22: 
23: <div style="float:left;">
24: <%= link_to_content_update("\xc2\xab " + l(:label_previous),
25:                    params.merge(:from => @date_to - @days - 1),
26:                    :title => l(:label_date_from_to, :start => format_date(@date_to - 2*@days), :end => format_date(@date_to - @days - 1))) %>
27: </div>

    app/views/activities/index.html.erb:24:in `concat'
    app/views/activities/index.html.erb:24
    /usr/lib/ruby/vendor_ruby/action_view/renderable.rb:34:in `block in render'
    /usr/lib/ruby/vendor_ruby/action_view/base.rb:306:in `with_template'
    /usr/lib/ruby/vendor_ruby/action_view/renderable.rb:30:in `render'
    /usr/lib/ruby/vendor_ruby/action_view/template.rb:205:in `render_template'
    /usr/lib/ruby/vendor_ruby/action_view/base.rb:265:in `render'
    /usr/lib/ruby/vendor_ruby/action_view/base.rb:348:in `_render_with_layout'
    /usr/lib/ruby/vendor_ruby/action_view/base.rb:262:in `render'
    /usr/lib/ruby/vendor_ruby/action_controller/base.rb:1252:in `render_for_file'
    /usr/lib/ruby/vendor_ruby/action_controller/base.rb:936:in `render'
    /usr/lib/ruby/vendor_ruby/action_controller/benchmarking.rb:51:in `block in render_with_benchmark'
    /usr/lib/ruby/vendor_ruby/action_controller/benchmarking.rb:51:in `render_with_benchmark'
    /usr/lib/ruby/vendor_ruby/action_controller/base.rb:1328:in `default_render'
    /usr/lib/ruby/vendor_ruby/action_controller/base.rb:1334:in `perform_action'
    /usr/lib/ruby/vendor_ruby/action_controller/filters.rb:617:in `call_filters'
    /usr/lib/ruby/vendor_ruby/action_controller/filters.rb:610:in `perform_action_with_filters'
    /usr/lib/ruby/vendor_ruby/action_controller/benchmarking.rb:68:in `block in perform_action_with_benchmark'
    /usr/lib/ruby/vendor_ruby/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark'
    /usr/lib/ruby/vendor_ruby/action_controller/rescue.rb:160:in `perform_action_with_rescue'
    /usr/lib/ruby/vendor_ruby/action_controller/flash.rb:151:in `perform_action_with_flash'
    /usr/lib/ruby/vendor_ruby/action_controller/base.rb:532:in `process'
    /usr/lib/ruby/vendor_ruby/action_controller/filters.rb:606:in `process_with_filters'
    /usr/lib/ruby/vendor_ruby/action_controller/base.rb:391:in `process'
    /usr/lib/ruby/vendor_ruby/action_controller/base.rb:386:in `call'
    /usr/lib/ruby/vendor_ruby/action_controller/routing/route_set.rb:438:in `call'
    /usr/lib/ruby/vendor_ruby/action_controller/dispatcher.rb:87:in `dispatch'
    /usr/lib/ruby/vendor_ruby/action_controller/dispatcher.rb:121:in `_call'
    /usr/lib/ruby/vendor_ruby/action_controller/dispatcher.rb:130:in `block in build_middleware_stack'
    /usr/lib/ruby/vendor_ruby/active_record/query_cache.rb:29:in `call'
    /usr/lib/ruby/vendor_ruby/active_record/query_cache.rb:29:in `block in call'
    /usr/lib/ruby/vendor_ruby/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
    /usr/lib/ruby/vendor_ruby/active_record/query_cache.rb:9:in `cache'
    /usr/lib/ruby/vendor_ruby/active_record/query_cache.rb:28:in `call'
    /usr/lib/ruby/vendor_ruby/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
    /usr/lib/ruby/vendor_ruby/action_controller/string_coercion.rb:25:in `call'
    /usr/lib/ruby/vendor_ruby/rack/head.rb:9:in `call'
    /usr/lib/ruby/vendor_ruby/rack/methodoverride.rb:21:in `call'
    /usr/lib/ruby/vendor_ruby/action_controller/params_parser.rb:15:in `call'
    /usr/lib/ruby/vendor_ruby/action_controller/session/cookie_store.rb:99:in `call'
    /usr/lib/ruby/vendor_ruby/action_controller/failsafe.rb:26:in `call'
    /usr/lib/ruby/vendor_ruby/rack/lock.rb:15:in `call'
    /usr/lib/ruby/vendor_ruby/action_controller/dispatcher.rb:106:in `call'
    /usr/lib/ruby/vendor_ruby/rack/handler/fastcgi.rb:66:in `serve'
    public/dispatch.fcgi:24:in `<main>'

Rendering /usr/share/redmine/public/500.html (500 Internal Server Error)


Don't hesitate to contact me for further info.

Regards,


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-042stab055.10 (SMP w/3 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages redmine depends on:
ii  bundler                       1.1.3-1
ii  dbconfig-common               1.8.47+nmu1
ii  debconf [debconf-2.0]         1.5.43
ii  redmine-mysql                 1.4.3+dfsg1-1
ii  ruby                          4.9
ii  ruby-coderay                  1.0.6-1
ii  ruby-fastercsv                1.5.5-1
ii  ruby-net-ldap                 0.3.1-1
ii  ruby-rack                     1.4.1-1
ii  ruby-rails-2.3                2.3.14-2
ii  ruby1.8 [ruby-interpreter]    1.8.7.358-4
ii  ruby1.9.1 [ruby-interpreter]  1.9.3.194-1

redmine recommends no packages.

Versions of packages redmine suggests:
pn  bzr           <none>
pn  cvs           <none>
pn  darcs         <none>
ii  git           1:1.7.10-1
pn  mercurial     <none>
pn  ruby-openid   <none>
ii  ruby-rmagick  2.13.1-5+b2
pn  subversion    <none>

-- debconf information:
* redmine/instances/default/passwords-do-not-match:
  redmine/instances/default/remote/newhost:
  redmine/instances/default/db/basepath:
  redmine/instances/default/pgsql/changeconf: false
  redmine/instances/default/missing-db-package-error: abort
  redmine/default-language: ${defaultLocale}
  redmine/instances/default/pgsql/no-empty-passwords:
  redmine/instances/default/pgsql/method: unix socket
* redmine/instances/default/database-type: mysql
  redmine/instances/default/pgsql/manualconf:
  redmine/instances/default/pgsql/authmethod-admin: ident
  redmine/instances/default/pgsql/admin-user: postgres
  redmine/missing-redmine-package:
  redmine/instances/default/pgsql/authmethod-user: password
* redmine/instances/default/dbconfig-reinstall: false
  redmine/instances/default/db/app-user: redmine
* redmine/instances/default/default-language: en
  redmine/notify-migration:
  redmine/old-instances:
  redmine/instances/default/upgrade-error: abort
  redmine/instances/default/db/dbname: redmine_default
  redmine/instances/default/purge: false
* redmine/current-instances: default
  redmine/instances/default/remote/host:
  redmine/instances/default/dbconfig-upgrade: true
  redmine/instances/default/internal/reconfiguring: true
  redmine/instances/default/upgrade-backup: true
  redmine/instances/default/install-error: abort
  redmine/instances/default/mysql/admin-user: root
  redmine/instances/default/mysql/method: unix socket
  redmine/instances/default/internal/skip-preseed: true
  redmine/instances/default/remove-error: abort
  redmine/instances/default/dbconfig-remove:
  redmine/instances/default/remote/port:
* redmine/instances/default/dbconfig-install: true






More information about the Pkg-ruby-extras-maintainers mailing list