Versions:
Tracks: 1.0.43
Ruby: 1.8.5
MySQL: 5.0.17 (mysqld-nt.exe)
production.log pasted after message text.
I am unable to login to tracks under windows. I have explicitly defined the shebang to my ruby.exe (#g:/ruby/bin/ruby.exe), and I am NOT using any sort of generic, “easy install” of ruby/mysql/etc… (I actually wrote a tutorial on installing tracks to windows, back when I first discovered it.)
I started having this problem in the version I originally used (I can’t remember the number), so I upgraded to 1.0.43. Then, I wiped the MySQL database (drop database tracks), and re-created it, and re-rean ‘rake migrate’. I’ve since tried to both create a new account, and I’ve tried with the example data (re-dropping tables, re-running migrate, and load_fixtures). I’ve verified the existance of data in the database.
This issue appears to be occuring with all Ruby programs. I’m hoping some of the ruby gurus here can help, or - since this is not neccisarily a tracks problem - direct me to the appropriate place to pose my question.
NOTE: for tracks, in console, assigned pass = “password”, and then ran hash routine Digest::SHA1.hexdigest(“#{SALT}—#{pass}—“) and verified hash output by script is exact match for hash in database. Apparently the issue is between the time the password is input into the browser, and the time the script processes it. It is not a browser issue (verified problem exists in FF, Opera, and IE).
The production.log paste is a clean database (only rake migrate). I first went to /signup, filled in info, and upon hitting button, page went to /login. I attempted to login, and it refreshed back to login page, displaying no error. (Attempts to login with a non-existant username result in standard error message.) Just for comparison, I went back to 127.0.0.1:3000 in a fresh tab, and tried to log in with a non-existant user (and received login unsuccessful error).
Thanks!
-Eric
production.log (using code tags to preserve line wrap):
Processing LoginController#signup (for 127.0.0.1 at 2006-11-26 02:01:19) [GET]
Session ID: 26dd91681ced721249ba9db5071c5e10
Parameters: {"action"=>"signup", "controller"=>"login"}
Rendering within layouts/login
Rendering login/signup
Completed in 0.05100 (19 reqs/sec) | Rendering: 0.03100 (60%) | DB: 0.01000 (19%) | 200 OK [http://127.0.0.1/signup]
Processing LoginController#create (for 127.0.0.1 at 2006-11-26 02:01:31) [POST]
Session ID: e6eddba31824253dabd7b93f7b637e7b
Parameters: {"user"=>{"password_confirmation"=>"password", "login"=>"eric", "password"=>"password"}, "action"=>"create", "controller"=>"login"}
Redirected to http://127.0.0.1:3000/
Completed in 0.08100 (12 reqs/sec) | DB: 0.06000 (74%) | 302 Found [http://127.0.0.1/login/create]
Processing TodoController#list (for 127.0.0.1 at 2006-11-26 02:01:31) [GET]
Session ID: c5c7acfd7932005731326595550a3a59
Parameters: {"action"=>"list", "controller"=>"todo"}
Redirected to http://127.0.0.1:3000/login
Filter chain halted as [login_required] returned false
Completed in 0.00010 (10000 reqs/sec) | DB: 0.00000 (0%) | 302 Found [http://127.0.0.1/]
Processing LoginController#login (for 127.0.0.1 at 2006-11-26 02:01:31) [GET]
Session ID: 4a46376d951e4424edaaee353acc64f4
Parameters: {"action"=>"login", "controller"=>"login"}
Rendering within layouts/login
Rendering login/login
Completed in 0.02000 (50 reqs/sec) | Rendering: 0.02000 (100%) | DB: 0.00000 (0%) | 200 OK [http://127.0.0.1/login]
Processing LoginController#login (for 127.0.0.1 at 2006-11-26 02:01:39) [POST]
Session ID: 7cb860c1b208b2fb698374b6f9fceaee
Parameters: {"user_login"=>"eric", "action"=>"login", "controller"=>"login", "user_noexpiry"=>"on", "user_password"=>"password", "login"=>"Login \302\273"}
Redirected to http://127.0.0.1:3000/
Completed in 0.00010 (10000 reqs/sec) | DB: 0.00000 (0%) | 302 Found [http://127.0.0.1/login]
Processing TodoController#list (for 127.0.0.1 at 2006-11-26 02:01:39) [GET]
Session ID: 14641058a5f3084223cd045c4fbd2fa6
Parameters: {"action"=>"list", "controller"=>"todo"}
Redirected to http://127.0.0.1:3000/login
Filter chain halted as [login_required] returned false
Completed in 0.00010 (10000 reqs/sec) | DB: 0.00000 (0%) | 302 Found [http://127.0.0.1/]
Processing LoginController#login (for 127.0.0.1 at 2006-11-26 02:01:39) [GET]
Session ID: 7b08e9597e344b67b20a411293c80667
Parameters: {"action"=>"login", "controller"=>"login"}
Rendering within layouts/login
Rendering login/login
Completed in 0.01000 (100 reqs/sec) | Rendering: 0.01000 (100%) | DB: 0.00000 (0%) | 200 OK [http://127.0.0.1/login]
Processing TodoController#list (for 127.0.0.1 at 2006-11-26 02:06:22) [GET]
Session ID: 69b00ea7e379e7a4b231b321e6cdc6ee
Parameters: {"action"=>"list", "controller"=>"todo"}
Redirected to http://127.0.0.1:3000/login
Filter chain halted as [login_required] returned false
Completed in 0.00010 (10000 reqs/sec) | DB: 0.00000 (0%) | 302 Found [http://127.0.0.1/]
Processing LoginController#login (for 127.0.0.1 at 2006-11-26 02:06:23) [GET]
Session ID: e6e6f4e94909fd6593b3b04c73e2574f
Parameters: {"action"=>"login", "controller"=>"login"}
Rendering within layouts/login
Rendering login/login
Completed in 0.02000 (50 reqs/sec) | Rendering: 0.02000 (100%) | DB: 0.00000 (0%) | 200 OK [http://127.0.0.1/login]
Processing LoginController#login (for 127.0.0.1 at 2006-11-26 02:06:35) [POST]
Session ID: 164d4f23ba3ce7269be4e6decd2bf4a8
Parameters: {"user_login"=>"snerf", "action"=>"login", "controller"=>"login", "user_password"=>"snerf", "login"=>"Login \302\273"}
Rendering within layouts/login
Rendering login/login
Completed in 0.01000 (100 reqs/sec) | Rendering: 0.00000 (0%) | DB: 0.01000 (100%) | 200 OK [http://127.0.0.1/login]
