git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v3 2/2] http: fix the silent ignoring of proxy misconfiguraion

From
Sergey Ryazanov <ryazanov.s.a@gmail.com>
Date
Apr 11, 2017, 20:50 UTC
Message-ID
<CAHNKnsT6-U2TY0KVNGXXkWytZt-ixqDM-WR3Qcq1A-3+NgxAUQ@mail.gmail.com>
In-Reply-To
<20170411173722.asjrkpbbm4p6k6ov@sigill.intra.peff.net>
On Tue, Apr 11, 2017 at 8:37 PM, Jeff King <peff@peff.net> wrote:
Show 24 quoted lines
> On Tue, Apr 11, 2017 at 08:17:50PM +0300, Sergey Ryazanov wrote:
>> Earlier, the whole http.proxy option string was passed to curl without
>> any preprocessing so curl could complain about the invalid proxy
>> configuration.
>>
>> After the commit 372370f167 ("http: use credential API to handle proxy
>> authentication", 2016-01-26), if the user specified an invalid HTTP
>> proxy option in the configuration, then the option parsing is silently
>> fails and NULL will be passed to curl as a proxy. This forces curl to
>
> s/is silently/silently/
>
>> fall back to detecting the proxy configuration from the environment,
>> causing the http.proxy option ignoring.
>>
>> Fix this issue by checking the proxy option parsing result. If parsing
>> failed then print error message and die. Such behaviour allows user to
>> quickly figure the proxy misconfiguration and correct it.
>
> Two minor grammos:
>
> s/error/an error/;
> s/user/the user/;
>
Thank you. Just sent a series with suggested grammar fixes as v4.
> In the earlier discussion you mentioned a warning, but I like this die()
> much better.
>
I actually meant "die" but by some reason I typed "warning" :-/
> Both patches look very clean, and nicely explained. Thanks for working
> on this.
>
Peff, I would like to thank you and Ævar for your great help!
-- 
Sergey
Previous: Jeff KingNext: Sergey Ryazanov
Message 4 of 5 in “http: few fixes for the proxy configuration handling”
  1. 0/2 http: few fixes for the proxy configuration handlingSergey Ryazanov, Apr 11, 2017
  2. 2/2 http: fix the silent ignoring of proxy misconfiguraionSergey Ryazanov, Apr 11, 2017
  3. Jeff KingApr 11, 2017
  4. Sergey RyazanovApr 11, 2017
  5. 1/2 http: honor empty http.proxy option to bypass proxySergey Ryazanov, Apr 11, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.