Forum: Ruby Weird connection/cache-problem in Rails

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
beakid (Guest)
on 2005-12-09 13:15
(Received via mailing list)
Hi all!

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

---------

#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?
This topic is locked and can not be replied to.