Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

(invisible) HTTPS_PROXY settings overrule explicit HTTP_PROXY settings

Aperta
#588 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
csharp

Direzione di ricerca

Start in ProxySettings.cs at private IWebProxy TryConfigureProxy(), especially the line checking _settings for the proxy setting name. Reproduce with https_proxy set without credentials alongside http_proxy and its credentials, then run libman restore. Done means explicit HTTP proxy credentials are honored and restore no longer produces the reported provider resolution errors.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Functional impact

If You configure only http_proxy + http_proxy.user + http_proxy.password, but the program gets a https_proxy URL from somewhere, Your settings will never be used and the restore function fails despite entering the right values.

I don't know how, but when debugging ProxySettings.cs, private IWebProxy TryConfigureProxy(), the line
if (_settings.TryGetValue(proxySettingName, out string proxyAddress)) (line 82)
returned a valid URL for https_proxy, even if it wasn't configured.

Therefore my own credentials were never used.

Minimal repro steps
  1. configure:
    https_proxy (with no credentials)
    http_proxy
    http_proxy.user
    http_proxy.password

  2. Execute
    libman restore

  3. You will get lots of errors, like
    [LIB002]: The "jquery-easing@1.4.1" library could not be resolved by the "cdnjs" provider

Expected result

I would expect that the credentials I entered would make restore possible

I can understand that not every proxy needs user name + password
It would help, if at least in the documentation, the user would be instructed to set https_proxy + credentials first.
Unfortunately, the current documentation only mentions http_proxy settings.

Lingua principale
C#
Stelle
486
Fork
91
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

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.

Altre issue di aspnet/LibraryManager

Tutte le issue di aspnet/LibraryManager

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.