Le 2012-11-22 à 11:20, Vaggelis Typaldos a écrit :

> # FAKE Sequel connestion string that includes hash characters in psswd
> schema = 'SCHEMA_FAKE'
> psswd   = 'aaa###bbbccc'
> host     = 'my.host.el'
> port     = '1521'
> sid       = 'SIDDB'
> conn_string = "oracle://#{ schema }"  + ':' + psswd + '@' + host + ':' + port 
> + '/' + sid
> 
> The returning error: 
> 
> C:/Ruby193/lib/ruby/1.9.1/uri/common.rb:176:in `split': bad URI(is not URI?): 
> oracle://SCHEMA_FAKE:aaa###[email protected]:1521/SIDDB (URI::InvalidURIError)
>   from C:/Ruby193/lib/ruby/1.9.1/uri/common.rb:211:in `parse'
>   from C:/Ruby193/lib/ruby/1.9.1/uri/common.rb:747:in `parse'
>   from 
> C:/Ruby193/lib/ruby/gems/1.9.1/gems/sequel-3.41.0/lib/sequel/database/connecting.rb:52:in
>  `connect'
>   from 
> C:/Ruby193/lib/ruby/gems/1.9.1/gems/sequel-3.41.0/lib/sequel/core.rb:147:in 
> `connect'
>   from C:/Users/etypaldos/Desktop/prod-wrk.rb:35:in `<main>'
> [Finished in 0.2s with exit code 1]
> 
> 
> This is due to lib/sequel/database/connecting.rb: in line 52:
> uri = URI.parse(conn_string)

That's not a Sequel bug, you are in error. You must pass a well-formed URI. You 
are passing in a wrongly formatted URI, hence you should fix the caller, not 
the callee.

Bye,
François

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to