rubycas / rubycas-server

Provides single sign-on authentication for web applications, implementing the server-end of Jasig's CAS protocol.
http://rubycas.github.com
Other
628 stars 269 forks source link

Logout fails if url parameter present #79

Open brodock opened 12 years ago

brodock commented 12 years ago

If url parameter is present on logout url, for example, using follow_url from: https://github.com/rubycas/rubycas-client/blob/master/lib/casclient/client.rb, it will crash if the following sinatra error:

Errno::ENOENT at /logout
No such file or directory - .../lib/casserver/views/logout.erb
file: template.rb location: binread line: 67

.../lib/casserver/server.rb in compile_template
  super engine, data, options, @custom_views || views
.../lib/casserver/server.rb in block in <class:Server>
    render @template_engine, :logout
.../.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/httpserver.rb in service
  si.service(req, res)
.../.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/httpserver.rb in run
      server.service(req, res)
.../.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/server.rb in block in start_thread
      block ? block.call(sock) : run(sock)
midwire commented 12 years ago

Same error here.

dyson commented 12 years ago

Checkout my response to another issue posted. Should help.

https://github.com/rubycas/rubycas-server/issues/86