protected method `cleanup_session' called Bug on head when using ruby-openid
gem associated to the open_id_authentication Rails plugin
--------------------------------------------------------------------------------------------------------------------------------------
Key: JRUBY-2014
URL: http://jira.codehaus.org/browse/JRUBY-2014
Project: JRuby
Issue Type: Bug
Environment: Java 6, JRuby head, Linux 2.6, Rails 2.0.2
Reporter: Raphael Valyi
Assignee: Thomas E Enebo
Unfortunately I have no simple test yet. Looks like a dumb visibility issue: a
protected method call fails while it should work. The same works perfectly in
MRI and removing the class to the method also make it pass in JRuby.
As for now, the complete setup to get the bug is to install a Rails app with
the open_id_authentication plugin (as long with the ruby-openid gem). The whole
setup is a too long to explain, you also need tha openid patch to make it work
with openid 2.0...
Finally when the third party openid server redirects you to your Rails server,
you'll get that bug:
protected method `cleanup_session' called for #<OpenID::Consumer:0x1b77ca0>
RAILS_ROOT: /home/rvalyi/DEV/livetribune
Application Trace | Framework Trace | Full Trace
/home/rvalyi/DEV/jruby/lib/ruby/gems/1.8/gems/ruby-openid-2.0.3/lib/openid/consumer.rb:292:in
`complete'
vendor/plugins/open_id_authentication/lib/open_id_authentication.rb:104:in
`complete_open_id_authentication'
vendor/plugins/open_id_authentication/lib/open_id_authentication.rb:104:in
`timeout_protection_from_identity_server'
vendor/plugins/open_id_authentication/lib/open_id_authentication.rb:104:in
`complete_open_id_authentication'
vendor/plugins/open_id_authentication/lib/open_id_authentication.rb:104:in
`authenticate_with_open_id'
app/controllers/auth_controller.rb:527:in `open_id_authentication'
app/controllers/auth_controller.rb:527:in `openid_login'
app/controllers/application.rb:25:in `process'
app/controllers/application.rb:24:in `catch'
app/controllers/application.rb:24:in `process'
app/controllers/application.rb:24:in `process'
The workarround is to make cleanup_session plublic in consumer.rb. So the bug
isn't a blocker but looks like something isn't clean. I'll try to have a
simpler test. Still trying in include OpenID in irb and then calling
cleanup_session the same way doesn't result in the same error, so it might be
related to the way modules are getting loaded...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email