Forum: Ruby on Rails Database passwords with numbers

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.
1b275ea705cc1671f13105d29684cbec?d=identicon&s=25 Scott F. Walter (Guest)
on 2006-03-29 19:36
I have database password in my database.yml as "passw0rd" however when I
go to http://localhost:3000/rails/info/properties I get this error:

private method `gsub' called for 1:Fixnum

But if I just use "password" for my password everything is ok.

Any ideas?
5d15c6821f3c3054c04b85471824ba7c?d=identicon&s=25 Lori Olson (Guest)
on 2006-03-29 20:49
(Received via mailing list)
On Wednesday, March 29, 2006, at 7:36 PM, Scott F. Walter wrote:
>I have database password in my database.yml as "passw0rd" however when I
>go to http://localhost:3000/rails/info/properties I get this error:
>
>private method `gsub' called for 1:Fixnum
>
>But if I just use "password" for my password everything is ok.
>
>Any ideas?
>


What database are you using?  I've used a similar password for both
Oracle and MySQL, and not had that problem.

--

Lori Olson
http://blog.dragonsharp.com
327a4e59c71bc3647bdcfcd45b66ffbf?d=identicon&s=25 Tae Kim (Guest)
on 2006-04-05 18:12
(Received via mailing list)
Lori Olson <devlists-rubyonrails@...> writes:

> >Any ideas?
> >
>
> What database are you using?  I've used a similar password for both
> Oracle and MySQL, and not had that problem.
>
> --
>
> Lori Olson
> http://blog.dragonsharp.com
>

I got the same thing. For me, it looks like it happens when it tries to
escape
the HTML. I duplicated the same error message by calling gsub on a int.
My guess
is there's an integer in the request data somewhere?

My Error log:

C:/InstantRails/ruby/lib/ruby/1.8/cgi.rb:362:in `escapeHTML_fail_on_nil'

(Ok, it won't let me post the rest cause it's too long) Dumb.
6832ae0a52b5a8a04401bc9bda38d372?d=identicon&s=25 Saldanha (Guest)
on 2006-04-05 20:40
Tae Kim wrote:
> Lori Olson <devlists-rubyonrails@...> writes:
>
>> >Any ideas?
>> >
>>
>> What database are you using?  I've used a similar password for both
>> Oracle and MySQL, and not had that problem.
>>
>> --
>>
>> Lori Olson
>> http://blog.dragonsharp.com
>>
>
> I got the same thing. For me, it looks like it happens when it tries to
> escape
> the HTML. I duplicated the same error message by calling gsub on a int.
> My guess
> is there's an integer in the request data somewhere?
>
> My Error log:
>
> C:/InstantRails/ruby/lib/ruby/1.8/cgi.rb:362:in `escapeHTML_fail_on_nil'
>
> (Ok, it won't let me post the rest cause it's too long) Dumb.

got the same error
I'm using mysql, with password sandra1.
tks for your tip.
This topic is locked and can not be replied to.