Skip to content

sqlcl : proxies on macosx don't work. #50

@C0de-M0nkey

Description

@C0de-M0nkey

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 "$@"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions