[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Weird connection/cache-problem in Rails

Beakid

12/9/2005 11:10:00 AM

Hi all!

Does anyone know the solution to this weird problem/bug in Rails?
(alternate link: http://rafb.net/paste/results/82f... )

---------

#in my helper

#this is a ruby module we created that can open a directory via samba
using login & password
require 'testlogin'

output = "Login with Admin: " + Testlogin.testlogin("", "Admin",
"admin", "smb://10.168.1.133/Data").to_s + "<br />"
output += "Login with Admin: " + Testlogin.testlogin("", "Admin",
"admin", "smb://10.168.1.133/Data").to_s + "<br />"
output += "Login with Wrong: " + Testlogin.testlogin("", "Wrong",
"admin", "smb://10.168.1.133/Data").to_s + "<br />"
output += "Login with Admin: " + Testlogin.testlogin("", "Admin",
"admin", "smb://10.168.1.133/Data").to_s

#in my view, i get this result
Login with Admin: 1
Login with Admin: 1
Login with Wrong: 0
Login with Admin: 0

If i run the Testlogin in the terminal it works as aspected (returning
1,1,0,1).
It seems something (rails? samba?) stores the samba-connection if the
login fails.

Seems to be a bug somewhere, right? Anyone have an idea?