Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting a proxy has no effect unless you restart the IDE #943

Open
adietish opened this issue Nov 1, 2024 · 0 comments
Open

Setting a proxy has no effect unless you restart the IDE #943

adietish opened this issue Nov 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@adietish
Copy link
Contributor

adietish commented Nov 1, 2024

Steps:

  1. ASSERT: have plugin running
  2. EXEC: Go Settings > Appearance & Behavior > System Settings > HTTP Proxy & provide a proxy (ex. corporate redhat proxy available behind VPN)

Result:
The command line tools like oc are still not using the proxy. You have to restart the IDE for those to use the proxy that you just configured
Unfortunately I dont see how to manually verify this. The only thing I have is proof in code. The proxy is put to the env variables when a tool instance is instantiated. No update happens if settings are changed):

org.jboss.tools.intellij.openshift.utils.oc.OcCli:

  public OcCli(
     ...
    this.envVars = envVarFactory.apply(String.valueOf(client.getMasterUrl()));
    ...
  }

org.jboss.tools.intellij.openshift.utils.Cli.EnvVarFactory

    public Map<String, String> apply(String url) {
        ...
        return NetworkUtils.buildEnvironmentVariables(url);
        ...
    }
  }
@adietish adietish added the bug Something isn't working label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant