Open GoogleCodeExporter opened 9 years ago
Verified using Sinatra 1.2.6.
To fix, go to {rubycas-server}\lib\casserver\server.rb
1. Open the file and edit the line 23:
set :public_folder, Proc.new { settings.config[:public_dir] || File.join(root, "..", "..", "public") }
to
set :public, Proc.new { settings.config[:public_dir] || File.join(root, "..", "..", "public") }
2. Go to line 41 and change the following:
return if (public_dir = settings.public_folder).nil?
to
return if (public_dir = settings.public).nil?
Original comment by hansheng...@gmail.com
on 7 Feb 2012 at 3:47
Wasn't this fixed in
https://github.com/rubycas/rubycas-server/commit/5b5ffd0d265e2555f278db76b5c81f7
44699807e
Or is this something extra that needs to be done to satisfy 1.2.6?
Original comment by matt.zuk...@gmail.com
on 7 Feb 2012 at 4:00
Commit
https://github.com/rubycas/rubycas-server/commit/5b5ffd0d265e2555f278db76b5c81f7
44699807e is what caused this issue in the first place. That commit fixes
compatibility with Sinatra 1.3, but it breaks compatibility with Sinatra 1.2.6
(and probably all of 1.2, though I haven't checked).
I just submitted a pull request to fix this issue.
Original comment by lif...@puppetlabs.com
on 7 Feb 2012 at 9:40
Original issue reported on code.google.com by
lif...@puppetlabs.com
on 4 Feb 2012 at 5:06