Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

oracle_sso function can't connect from behind proxy #40

@cliffano

Description

@cliffano

Could you please confirm whether oracle_sso function works behind a proxy?

I have tried setting up both
a) environment variables proxy setting (http_proxy, HTTP_PROXY, https_proxy, HTTPS_PROXY, no_proxy, and NO_PROXY)
b) oracle_java's proxy_server attribute
but I kept getting connection error to download.oracle.com

I could only get it working by explicitly passing the proxy details to Net::HTTP.start:

response = Net::HTTP.start(uri.host, uri.port, <proxy_host>, <proxy_port>, :use_ssl => uri.scheme == 'https') do |http|

Would you expect the above to be necessary? Or should it use environment variables?
I understand that Net::HTTP should inherit the environment variables, but it didn't work.

Using ruby-2.2 with oracle_java 2.9.1 .

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions