redmine 2.0 error about cannot parse Cookie header

Added by Steven Wong over 6 years ago

Hi, I used 1.4 and today I tried 2.0.

After I have installed 2.0 and with the right configuration, I restart the redmine-2.0.
and when I open the http://localhost:3000 then an error occured.

the error information is

[root@localhost redmine-2.0]# ruby script/rails server webrick -e production -p 4000        
=> Booting WEBrick
=> Rails 3.2.3 application starting in production on http://0.0.0.0:4000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2012-05-18 15:19:51] INFO  WEBrick 1.3.1
[2012-05-18 15:19:51] INFO  ruby 1.8.7 (2010-08-16) [i686-linux]
[2012-05-18 15:19:51] INFO  WEBrick::HTTPServer#start: pid=28138 port=4000

Started GET "/activity" for 192.168.3.58 at Fri May 18 15:19:54 +0800 2012

ArgumentError (cannot parse Cookie header: invalid %-encoding (%5B%7B%22id%22%3A%224271%22%2C%22title%22%3A%22Redmine%202.0%20%u7248%u672C%u90E8%u7F72%22%7D%2C%7B%22id%22%3A%224268%22%2C%22title%22%3A%22%5B%u6D4B%u8BD5%u56E2%u961F%u57F9%u8BAD%5D%u300AHG_TestLink%20%u4F7F%u7528%u6307%u5357%u300B%22%7D%2C%7B%22id%22%3A%224266%22%2C%22title%22%3A%22%5B%u6D4B%u8BD5%u56E2%u961F%u57F9%u8BAD%5D%u300AOralce_SQL%u9AD8%u7EA7%u57F9%u8BAD%u300B%22%7D%2C%7B%22id%22%3A%224264%22%2C%22title%22%3A%22%5B%u6D4B%u8BD5%u56E2%u961F%u57F9%u8BAD%5D%u300AOralce_SQL%u57FA%u7840%u57F9%u8BAD%u300B%22%7D%2C%7B%22id%22%3A%224251%22%2C%22title%22%3A%22Redmine%201.4.2%20%u7248%u672C%u5347%u7EA7%u66FF%u6362%22%7D%2C%7B%22id%22%3A%224234%22%2C%22title%22%3A%22%u4E1C%u65B9%u6709%u7EBF%u6D4B%u8BD5%u62A5%u544A%uFF08%u6574%u5408%uFF09%22%7D%2C%7B%22id%22%3A%224202%22%2C%22title%22%3A%22%u300A2012-05%20%u6D4B%u8BD5%u7CFB%u7EDF%u6708%u5EA6%u8FD0%u7EF4%u62A5%u544A%u300B%22%7D%2C%7B%22id%22%3A%224197%22%2C%22title%22%3A%22%5B%u6D4B%u8BD5%u56E2%u961F%u57F9%u8BAD%5D%u300A%u9700%u6C42%u8BC4%u5BA1%u300B%22%7D%2C%7B%22id%22%3A%224195%22%2C%22title%22%3A%22%u4E1C%u65B9%u6709%u7EBF%u6D4B%u8BD5%u5DE5%u4F5C%u603B%u7ED3%22%7D%5D)):
  rack (1.4.1) lib/rack/backports/uri/common_18.rb:67:in `decode_www_form_component'
  rack (1.4.1) lib/rack/utils.rb:43:in `unescape'
  rack (1.4.1) lib/rack/utils.rb:67:in `parse_query'
  rack (1.4.1) lib/rack/utils.rb:67:in `map'
  rack (1.4.1) lib/rack/utils.rb:67:in `parse_query'
  rack (1.4.1) lib/rack/utils.rb:66:in `each'
  rack (1.4.1) lib/rack/utils.rb:66:in `parse_query'
  rack (1.4.1) lib/rack/request.rb:263:in `cookies'
  actionpack (3.2.3) lib/action_dispatch/middleware/cookies.rb:110:in `build'
  actionpack (3.2.3) lib/action_dispatch/middleware/cookies.rb:109:in `tap'
  actionpack (3.2.3) lib/action_dispatch/middleware/cookies.rb:109:in `build'
  actionpack (3.2.3) lib/action_dispatch/middleware/cookies.rb:7:in `cookie_jar'
  actionpack (3.2.3) lib/action_dispatch/middleware/session/cookie_store.rb:53:in `unpacked_cookie_data'
  actionpack (3.2.3) lib/action_dispatch/middleware/session/abstract_store.rb:55:in `stale_session_check!'
  actionpack (3.2.3) lib/action_dispatch/middleware/session/cookie_store.rb:51:in `unpacked_cookie_data'
  rack (1.4.1) lib/rack/session/cookie.rb:98:in `extract_session_id'
  actionpack (3.2.3) lib/action_dispatch/middleware/session/abstract_store.rb:51:in `extract_session_id'
  actionpack (3.2.3) lib/action_dispatch/middleware/session/abstract_store.rb:55:in `stale_session_check!'
  actionpack (3.2.3) lib/action_dispatch/middleware/session/abstract_store.rb:51:in `extract_session_id'
  rack (1.4.1) lib/rack/session/abstract/id.rb:43:in `send'
  rack (1.4.1) lib/rack/session/abstract/id.rb:43:in `load_session_id!'
  rack (1.4.1) lib/rack/session/abstract/id.rb:32:in `[]'
  rack (1.4.1) lib/rack/session/abstract/id.rb:262:in `current_session_id'
  rack (1.4.1) lib/rack/session/abstract/id.rb:268:in `session_exists?'
  rack (1.4.1) lib/rack/session/abstract/id.rb:107:in `send'
  rack (1.4.1) lib/rack/session/abstract/id.rb:107:in `exists?'
  rack (1.4.1) lib/rack/session/abstract/id.rb:122:in `load_for_read!'
  rack (1.4.1) lib/rack/session/abstract/id.rb:64:in `key?'
  actionpack (3.2.3) lib/action_dispatch/middleware/flash.rb:258:in `call'
  rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
  rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
  actionpack (3.2.3) lib/action_dispatch/middleware/cookies.rb:338:in `call'
  activerecord (3.2.3) lib/active_record/query_cache.rb:64:in `call'
  activerecord (3.2.3) lib/active_record/connection_adapters/abstract/connection_pool.rb:467:in `call'
  actionpack (3.2.3) lib/action_dispatch/middleware/callbacks.rb:28:in `call'
  activesupport (3.2.3) lib/active_support/callbacks.rb:405:in `_run__397314981__call__4__callbacks'
  activesupport (3.2.3) lib/active_support/callbacks.rb:405:in `send'
  activesupport (3.2.3) lib/active_support/callbacks.rb:405:in `__run_callback'
  activesupport (3.2.3) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
  activesupport (3.2.3) lib/active_support/callbacks.rb:81:in `send'
  activesupport (3.2.3) lib/active_support/callbacks.rb:81:in `run_callbacks'
  actionpack (3.2.3) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
  actionpack (3.2.3) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
  actionpack (3.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
  actionpack (3.2.3) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
  railties (3.2.3) lib/rails/rack/logger.rb:26:in `call_app'
  railties (3.2.3) lib/rails/rack/logger.rb:16:in `call'
  actionpack (3.2.3) lib/action_dispatch/middleware/request_id.rb:22:in `call'
  rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
  rack (1.4.1) lib/rack/runtime.rb:17:in `call'
  activesupport (3.2.3) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
  rack (1.4.1) lib/rack/lock.rb:15:in `call'
  actionpack (3.2.3) lib/action_dispatch/middleware/static.rb:62:in `call'
  rack-cache (1.2) lib/rack/cache/context.rb:136:in `forward'
  rack-cache (1.2) lib/rack/cache/context.rb:245:in `fetch'
  rack-cache (1.2) lib/rack/cache/context.rb:185:in `lookup'
  rack-cache (1.2) lib/rack/cache/context.rb:66:in `call!'
  rack-cache (1.2) lib/rack/cache/context.rb:51:in `call'
  railties (3.2.3) lib/rails/engine.rb:479:in `call'
  railties (3.2.3) lib/rails/application.rb:220:in `call'
  rack (1.4.1) lib/rack/content_length.rb:14:in `call'
  railties (3.2.3) lib/rails/rack/log_tailer.rb:14:in `call'
  rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
  /usr/local/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
  /usr/local/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
  /usr/local/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
  /usr/local/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
  /usr/local/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
  /usr/local/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
  /usr/local/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
  /usr/local/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
  /usr/local/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
  /usr/local/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
  rack (1.4.1) lib/rack/handler/webrick.rb:13:in `run'
  rack (1.4.1) lib/rack/server.rb:265:in `start'
  railties (3.2.3) lib/rails/commands/server.rb:70:in `start'
  railties (3.2.3) lib/rails/commands.rb:55
  railties (3.2.3) lib/rails/commands.rb:50:in `tap'
  railties (3.2.3) lib/rails/commands.rb:50
  script/rails:6:in `require'
  script/rails:6

anyone have any idea?

Replies (1)

RE: redmine 2.0 error about cannot parse Cookie header - Added by Steven Wong over 6 years ago

OK, I found a solution about it.

You should clean up the browser cookies and then it's OK.

Any other solution??

(1-1/1)