oracle/oracle-db-tools

sqlcl : proxies on macosx don't work.

Opened this issue · 0 comments

On OSX at least any parameters passed via "dbtools.system_http_proxy=" simply don't work.
This includes setting environment variables such as http_proxy or using a proxy.pac file.

sql sysman/password@a_database
Jan 25, 2024 4:30:56 PM oracle.dbtools.raptor.proxy.ProxyAutoConfig findProxyForURL
INFO: findProxyForURL(http://www.internic.net) returns null.


SQLcl: Release 23.3 Production on Thu Jan 25 16:31:26 2024

Copyright (c) 1982, 2024, Oracle.  All rights reserved.

  USER          = sysman
  URL           = jdbc:oracle:thin:@a_database
  Error Message = IO Error: The Network Adapter could not establish the connection (CONNECTION_ID=Wwwwwwwwwwwwwwwwwwwwww==)
Username? (RETRYING) ('sysman/*********@a_database'?)

A manual override does work ...

"${JAVA}" -DsocksProxyHost=localhost -DsocksProxyPort=1184 ${CUSTOM_JDBC} ${CYGWIN} "${APP_VM_OPTS[@]}" -client ${SQLCL_DEBUG} -cp "${CPLIST}" oracle.dbtools.raptor.scriptrunner.cmdline.SqlCli "$@"