Weird connection/cache-problem in Rails

B

Beakid

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,200
Messages
2,571,046
Members
47,646
Latest member
xayaci5906

Latest Threads

Top