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

Re: jk/loosen-urlmatch, was What's cooking in git.git (Nov 2021, #07; Mon, 29)

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Nov 30, 2021, 13:17 UTC
Message-ID
<YaYkcLNPODqzQNgu@camp.crustytoothpaste.net>
In-Reply-To
<YaXTxTW9ihC1/deN@coredump.intra.peff.net>
On 2021-11-30 at 07:33:25, Jeff King wrote:
Show 19 quoted lines
> On Mon, Nov 29, 2021 at 06:16:54PM -0800, Junio C Hamano wrote:
> 
> > --------------------------------------------------
> > [Graduated to 'master']
> >
> > [...]
> > * jk/loosen-urlmatch (2021-10-12) 1 commit
> >   (merged to 'next' on 2021-10-25 at f66ca39ebe)
> >  + urlmatch: add underscore to URL_HOST_CHARS
> > 
> >  Treat "_" as any other URL-valid characters in an URL when matching
> >  the per-URL configuration variable names.
> 
> Sorry, I hadn't noticed that this one had even made it to 'next', and
> was surprised to see it graduate.
> 
> I think brian corrected my assertion in the commit message that RFC 1738
> says that underscores are OK. They are for URIs in general, but not the
> specific case of hostnames in HTTP schemes.

From my memory of the research I did, they're okay for URIs according to the grammar, but they're acceptable only if you're using something that isn't DNS, which as a practical matter is never the case.

Show 12 quoted lines
> Now that isn't strictly a reason to drop the patch. Even though
> underscores aren't allowed, they do work in some limited circumstances,
> and curl is happy to take them. So in some sense this is harmonizing our
> urlmatch behavior with curl for an iffy-but-workable practice, and there
> may be value in that. But it does take us further away from the
> standards, which could possibly have surprising consequences down the
> road.
> 
> I don't have a strong feeling either way on reverting it at this point.
> But I wanted to make sure that if we kept it in, we were doing so
> consciously, and not just because folks involved in the discussion
> didn't realize it was still working its way through the process.

I don't think it's necessarily worth reverting, but we should avoid continuing to make further improvements in this area. In other words, we shouldn't take this as an opportunity to support more of this.

-- 
brian m. carlson (he/him or they/them)
Toronto, Ontario, CA
Previous: Jeff KingNext: Ævar Arnfjörð Bjarmason
Message 3 of 42 in “What's cooking in git.git (Nov 2021, #07; Mon, 29)”
  1. Junio C HamanoNov 30, 2021
  2. jk/loosen-urlmatch, was What's cooking in git.git (Nov 2021, #07; Mon, 29)Jeff King, Nov 30, 2021
  3. brian m. carlsonNov 30, 2021
  4. ab/run-command + em/missing-pager (was: What's cooking in git.git (Nov 2021, #07; Mon, 29))Ævar Arnfjörð Bjarmason, Nov 30, 2021
  5. Jeff KingNov 30, 2021
  6. Eric SunshineNov 30, 2021
  7. ab/ci-updates (was: What's cooking in git.git (Nov 2021, #07; Mon, 29))Ævar Arnfjörð Bjarmason, Nov 30, 2021
  8. ab/config-based-hooks-2 (was: What's cooking in git.git (Nov 2021, #07; Mon, 29))Ævar Arnfjörð Bjarmason, Nov 30, 2021
  9. fs/test-prereq (was: What's cooking in git.git (Nov 2021, #07; Mon, 29))Ævar Arnfjörð Bjarmason, Nov 30, 2021
  10. Fabian StelzerDec 1, 2021
  11. jc/c99-var-decl-in-for-loop (was: What's cooking in git.git (Nov 2021, #07; Mon, 29))Ævar Arnfjörð Bjarmason, Nov 30, 2021
  12. ns/tmp-objdir and ns/remerge-diffElijah Newren, Nov 30, 2021
  13. Junio C HamanoDec 3, 2021
  14. Neeraj SinghDec 4, 2021
  15. Elijah NewrenDec 4, 2021
  16. Elijah NewrenNov 30, 2021
  17. Victoria DyeDec 1, 2021
  18. Elijah NewrenNov 30, 2021
  19. Aleen 徐沛文Dec 1, 2021
  20. Elijah NewrenDec 1, 2021
  21. Ævar Arnfjörð BjarmasonDec 3, 2021
  22. Elijah NewrenDec 3, 2021
  23. Ævar Arnfjörð BjarmasonDec 3, 2021
  24. Aleen 徐沛文Dec 6, 2021
  25. Junio C HamanoDec 6, 2021
  26. Aleen 徐沛文Dec 6, 2021
  27. Aleen 徐沛文Dec 6, 2021
  28. Junio C HamanoDec 6, 2021
  29. Aleen 徐沛文Dec 7, 2021
  30. Junio C HamanoDec 7, 2021
  31. Aleen 徐沛文Dec 7, 2021
  32. Elijah NewrenDec 6, 2021
  33. Junio C HamanoDec 6, 2021
  34. en/zdiff3 (was: Re: What's cooking in git.git (Nov 2021, #07; Mon, 29))Elijah Newren, Nov 30, 2021
  35. Junio C HamanoDec 1, 2021
  36. Fabian StelzerDec 1, 2021
  37. Junio C HamanoDec 3, 2021
  38. 0/3 unused-parameter cleanups on top of pw/xdiff-classify-record-in-histogramJeff King, Dec 3, 2021
  39. 1/3 xdiff: drop CMP_ENV macro from xhistogramJeff King, Dec 3, 2021
  40. 2/3 xdiff: drop xpparam_t parameter from histogram cmp_recs()Jeff King, Dec 3, 2021
  41. 3/3 xdiff: drop unused flags parameter from recs_matchJeff King, Dec 3, 2021
  42. Phillip WoodDec 6, 2021

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.