OpenAPITools / OpenAPITools/openapi-generator-cli

[BUG] The version manager does not respect the NO_PROXY environment variable.

Aperta
#652 1 commento 7 reazioni 1 assegnatario Vedi su GitHub

@kay-schecker ci sta già lavorando.

Dal 20/6/2022.

bug
Lingua principale
TypeScript
Stelle
2k
Fork
208
Merge medio
7h 12m
PR unite (30g)
6

Descrizione

🐛 Bug Report:

Describe the bug

The version manager does not respect the NO_PROXY environment variable. When using the openapi-generator-cli behind a corporate proxy (i.e. HTTP_PROXY & HTTPS_PROXY are set) while trying to download a version of openapi generator from a private maven repository (which is within the corporate network, i.e. the download should not go through the proxy), the NO_PROXY environment variable is ignored.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Use the openapi-generator-cli version manager to download a version from a private repository within a corporate network, which is separated from the internet by a proxy.
  2. openapi-generator-cli respects HTTP_PROXY & HTTPS_PROXY (which are needed for requests from within the corporate network to the internet, but fails to download from the internal maven repo, as it still tries to go through the proxy:
> openapi-generator-cli generate

Download 6.0.0 ...
Download failed, because of: "socket hang up"
  1. Only by explicitly un-setting the HTTP_PROXY & HTTPS_PROXY environment variables as a work-around it is possible to download from the private repo.
Expected behavior

The openapi-generator-cli version manager should respect the NO_PROXY environment variable and download the version of openapi generator from the private repo without going through the proxy.

Additional context

Also mentioned in these comments.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.