minad / olelo

Wiki with git backend
MIT License
241 stars 44 forks source link

error with singup: RuntimeError: cannot parse Cookie header #68

Closed ferriswheel closed 11 years ago

ferriswheel commented 12 years ago

hello

just installed olelo and when i tried to create a user i got this error

RuntimeError: cannot parse Cookie header: can't add a new key into hash during iteration

see this gist: https://gist.github.com/1292004

also these rake test results

gist: https://gist.github.com/1291998 gist https://gist.github.com/1291995

this is the rvm info

ruby-1.9.2-p290@olelo-wiki-test:

system: uname: "Linux blackhole 2.6.33-gentoo #15 SMP PREEMPT Thu Jan 6 19:50:16 EST 2011 i686 Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz GenuineIntel GNU/Linux" bash: "/bin/bash => GNU bash, version 4.1.9(2)-release (i686-pc-linux-gnu)" zsh: " => not installed"

rvm: version: "rvm 1.8.6 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/]"

ruby: interpreter: "ruby" version: "1.9.2p290" date: "2011-07-09" platform: "i686-linux" patchlevel: "2011-07-09 revision 32553" full_version: "ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux]"

homes: gem: "/home/john/.rvm/gems/ruby-1.9.2-p290@olelo-wiki-test" ruby: "/home/john/.rvm/rubies/ruby-1.9.2-p290"

binaries: ruby: "/home/john/.rvm/rubies/ruby-1.9.2-p290/bin/ruby" irb: "/home/john/.rvm/rubies/ruby-1.9.2-p290/bin/irb" gem: "/home/john/.rvm/rubies/ruby-1.9.2-p290/bin/gem" rake: "/home/john/.rvm/gems/ruby-1.9.2-p290@global/bin/rake"

environment: PATH: "/home/john/.rvm/gems/ruby-1.9.2-p290@olelo-wiki-test/bin:/home/john/.rvm/gems/ruby-1.9.2-p290@global/bin:/home/john/.rvm/rubies/ruby-1.9.2-p290/bin:/home/john/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.4.3:/home/john/bin" GEM_HOME: "/home/john/.rvm/gems/ruby-1.9.2-p290@olelo-wiki-test" GEM_PATH: "/home/john/.rvm/gems/ruby-1.9.2-p290@olelo-wiki-test:/home/john/.rvm/gems/ruby-1.9.2-p290@global" MY_RUBY_HOME: "/home/john/.rvm/rubies/ruby-1.9.2-p290" IRBRC: "/home/john/.rvm/rubies/ruby-1.9.2-p290/.irbrc" RUBYOPT: "" gemset: "olelo-wiki-test"

regards

john

NickShaffner commented 12 years ago

I'm seeing this as well on 1.9.2 and 1.9.3 - the call stack looks like:

RuntimeError: cannot parse Cookie header: can't add a new key into hash during iteration /Users/nshaffner/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.5/lib/rack/request.rb:248:in rescue in cookies': requests - should have empty repository /Users/nshaffner/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.5/lib/rack/request.rb:233:incookies' /Users/nshaffner/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.5/lib/rack/session/abstract/id.rb:244:in extract_session_id' /Users/nshaffner/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.5/lib/rack/session/abstract/id.rb:43:inload_session_id!' /Users/nshaffner/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.5/lib/rack/session/abstract/id.rb:32:in []' /Users/nshaffner/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.5/lib/rack/session/abstract/id.rb:252:incurrent_session_id' /Users/nshaffner/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.5/lib/rack/session/abstract/id.rb:258:in session_exists?' /Users/nshaffner/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.5/lib/rack/session/abstract/id.rb:104:inexists?' /Users/nshaffner/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.5/lib/rack/session/abstract/id.rb:114:in load_for_read!' /Users/nshaffner/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.5/lib/rack/session/abstract/id.rb:98:ininspect' /Users/nshaffner/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/core_ext/logger.rb:78:in inspect' /Users/nshaffner/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/core_ext/logger.rb:78:incall' /Users/nshaffner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/logger.rb:443:in format_message' /Users/nshaffner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/logger.rb:339:inadd' /Users/nshaffner/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/logger.rb:360:in debug' /Users/nshaffner/Dropbox/Scripts/olelo/lib/olelo/application.rb:31:inblock in class:Application' /Users/nshaffner/Dropbox/Scripts/olelo/lib/olelo/hooks.rb:68:in block in invoke_hook' /Users/nshaffner/Dropbox/Scripts/olelo/lib/olelo/hooks.rb:68:inmap' /Users/nshaffner/Dropbox/Scripts/olelo/lib/olelo/hooks.rb:68:in invoke_hook' /Users/nshaffner/Dropbox/Scripts/olelo/lib/olelo/hooks.rb:50:inwith_hooks' /Users/nshaffner/Dropbox/Scripts/olelo/lib/olelo/routing.rb:102:in block (2 levels) in perform!' /Users/nshaffner/Dropbox/Scripts/olelo/lib/olelo/routing.rb:101:incatch' /Users/nshaffner/Dropbox/Scripts/olelo/lib/olelo/routing.rb:101:in block in perform!' /Users/nshaffner/Dropbox/Scripts/olelo/lib/olelo/routing.rb:100:incatch' /Users/nshaffner/Dropbox/Scripts/olelo/lib/olelo/routing.rb:100:in perform!' /Users/nshaffner/Dropbox/Scripts/olelo/lib/olelo/routing.rb:34:inblock (2 levels) in call!' /Users/nshaffner/Dropbox/Scripts/olelo/lib/olelo/hooks.rb:51:in with_hooks' /Users/nshaffner/Dropbox/Scripts/olelo/lib/olelo/routing.rb:34:inblock in call!' /Users/nshaffner/Dropbox/Scripts/olelo/lib/olelo/routing.rb:33:in catch' /Users/nshaffner/Dropbox/Scripts/olelo/lib/olelo/routing.rb:33:incall!' /Users/nshaffner/Dropbox/Scripts/olelo/lib/olelo/routing.rb:18:in call' /Users/nshaffner/Dropbox/Scripts/olelo/lib/olelo/middleware/flash.rb:100:incall' /Users/nshaffner/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.5/lib/rack/session/abstract/id.rb:195:in context' /Users/nshaffner/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.5/lib/rack/session/abstract/id.rb:190:incall' /Users/nshaffner/Dropbox/Scripts/olelo/lib/olelo/middleware/force_encoding.rb:12:in call' /Users/nshaffner/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.5/lib/rack/builder.rb:134:incall' /Users/nshaffner/.rvm/gems/ruby-1.9.2-p290/gems/rack-test-0.6.1/lib/rack/mock_session.rb:30:in request' /Users/nshaffner/.rvm/gems/ruby-1.9.2-p290/gems/rack-test-0.6.1/lib/rack/test.rb:219:inprocess_request' /Users/nshaffner/.rvm/gems/ruby-1.9.2-p290/gems/rack-test-0.6.1/lib/rack/test.rb:57:in get' test/request_test.rb:87:inblock (2 levels) in <top (required)>' test/request_test.rb:86:in block in <top (required)>' test/request_test.rb:14:in<top (required)>'

minad commented 11 years ago

this was a rack problem and should be fixed https://github.com/rack/rack/issues/241