Article View: linux.kernel.git
Article #4203Re: [PATCH v5 3/3] bundle-uri: do not die on unresolvable relative URIs
From: Aniket Gupta
Date: Tue, 01 Dec 2026 15:43
Date: Tue, 01 Dec 2026 15:43
29 lines
12255 bytes
12255 bytes
> This is now weirdly inconsistent. [...]
I had added the removal in v5 because of Junio's v4 review. A bad URI
left an entry without a uri in the map. For a list that a server
advertises, the clone then reported the same bundle a second time, as
having no uri. The check for a missing value didnt come from me
though... it landed upstream while v4 was in review ("bundle-uri: handle
NULL values in bundle lists"). It cannot cause the second error: a line
without a value in the server's advertisement is rejected earlier, and a
list file with one is rejected as a whole. I agree that it reads oddly
that the 2 cases differ. How about I drop the bundle in both in v6?
> This change also raises the question why we error on a broken URI, but
> not on a broken creation token. Maybe the creation token isn't needed?
I did not change how the creation token is handled, and a broken one
warns like before. It is needed for the creationToken heuristic and a
bundle with token 0 gets skipped. Making it an error feels like a
separate change... how about we leave it?
> In any case, this could have been avoided if we add the entry to the
> map at the end of the function, only, after we have parsed everything.
I tested this. The function only sees one key at a time. If another key
of the same bundle, for eg creationToken, comes first, the entry is
already in the map. Adding it last fixes the case where the bad uri
comes first, but if creationToken comes first the clone still prints
"bundle '<id>' has no uri". It made sense to keep the removal.
Technical Details
Message-ID:
<20261201154338.51613-1-aniketgupta3001@gmail.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76795-linux-kernel-git=dewy.ruReferences:
<20261105152842.566318-1-aniketgupta3001@gmail.com> <20261126115803.30015-1-aniketgupta3001@gmail.com> <20261126115803.30015-4-aniketgupta3001@gmail.com> <aw6--STmep1UZ3qy@pks.im>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76795-linux-kernel-git=dewy.ru
From: aniketgupta3001@gmail.com (Aniket Gupta)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH v5 3/3] bundle-uri: do not die on unresolvable relative URIs
Date: Tue, 1 Dec 2026 21:13:38 +0530
Organization: Usenet Network
Message-ID: <20261201154338.51613-1-aniketgupta3001@gmail.com>
References: <20261105152842.566318-1-aniketgupta3001@gmail.com> <20261126115803.30015-1-aniketgupta3001@gmail.com> <20261126115803.30015-4-aniketgupta3001@gmail.com> <aw6--STmep1UZ3qy@pks.im>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="1751822"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:0eb52KzaiZRar/ck8zoDBh9uWWA= sha256:1luW7Gep0j62cjN+UGgsSZY3ZNvZVrLn5I4Y9YF1hOU=
sha1:6iWEe36y71OpulLbgmm1fn0WBzA= sha256:G0pLILQbdjQ/f57mtsb7vWeVXdM9UgpaMK4LoG0QfHE=
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 5589311740A; Tue, 1 Dec 2026 18:43:59 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.949
X-Spam-Status: No, score=-1.949 tagged_above=-9999 required=6.31
tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id hU3YkQMjlCif;
Tue, 1 Dec 2026 18:43:56 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-76795-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 49CA9117407; Tue, 1 Dec 2026 18:43:48 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id A1A9C2C848; Tue, 1 Dec 2026 15:43:46 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1796139826;
b=AWbszOED8RyA0jPONn5yvxRkJ4IbDo33kSn0vYTNxmF4cF2255cFPsv18Ab75lrHnzev
HI9QkAsDYUSdMkA/ev0A+P60VaBjuue6fil4pjfeojpjd9xEi5KcQIW6B1pNz74/RT8+p
3RM7TlswD6EtDNCAmFOdZDuI7qdEdksSg0iRjQpmcnS5Bq+n9XvTWXvj9kEMAfdfNICiK
o50Z8v2S3dbaKFVrCRmmVq+q4qoGtoUVxEbsSjSd1kHdzHa8yyaTdSVCs1f/JVnO5cdVV
3vbQg60OKHb5X9ZS+lViV3iaB+Q8omy0/AXBdyjktgogbarlvYOOSEkNsbjc/tnKGbg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796139826;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:
References:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:
Content-Transfer-Encoding;
bh=mSFhQws1YNYPgfe0nLjLbq/vfZRAjOQOOHJrxJjmARU=;
b=S90xO1QlqERtKIwfGilcSQX3b+JI30e4Q1gEYmR1cKnBSb/pfKJ3q5tcTMqolVQXHe4a
Xnqonw48AWtyIibRlr3lqhowAGKwe0eRqXrd90GzBHiJuDB9fdQVFnRBJI/IoBQXwhuig
bzNXMQZnLo98eY0DQ4YXsuwcMhw7dFMe0+vWh4Mgk3J2wvLzWOnLFp99dGLcYDbYLW7L7
TqxdYSU8PgUiilUWiaKsEkdDe+xEayZ8/vlr5Qegc39Id7oSs0LT1n7oe04N+Xmyac6Me
qELvdS5lRpSCUWW9U1cpgU9ev0AWQHJRcIeS8Ss2Rg228gDoAB0eWg8Ku2MtjY7slAg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=rDVW5y+D;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F294606A322;
Tue, 1 Dec 2026 15:43:46 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=rDVW5y+D
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.216.49
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1796139825;
b=M6qDLM9Ad/7jJFEDwh8QCHas19s7F4eKiz8HI2Ilo5zAHu2PkKrt2L/90twyowXzCh2d
w6GYZkCw7yzGfS2bL+jcLuY1F1WsOYKKkgv2jRsk7bAMKcXYjQesXOnu4FdmsDvo5CEz3
lY8OmMyGPIuTqNszTIqoMjH1zd3yxUdOwnD8EfdW2g53K3TyiHwiEyFN8IiOcGjndaE8g
Y7BB8eNs0jU1YX6a/iECX6ELp01L4rN9ibdbXViqNIwz6t/5GJTbDL7wLjTXB5cnS8s0a
YBEzS4qPeCWIeBU+UP5hz5INAdYU/w41M+K2HvyLDEzRkFBo0jWXinqBtP7VPe2sy5g==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796139825;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:
Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version:
Content-Transfer-Encoding;
bh=mSFhQws1YNYPgfe0nLjLbq/vfZRAjOQOOHJrxJjmARU=;
b=23QdttPrf1V+7CZBEarNtnbUT7B7uHGOPzcl3QQBcZfYXYeNB9sNYKK54Pi+Qfpu0IjL
kGAte4X2YeVc8G+HeX/35sF2IoFhy844+6BCuHn/U3RQQirEWDCzVTyhy/sDPnBgiyViv
dL0YU6tC/g/oISqDYoigD3cH9kxj8lDPrkrvqtMDZJPidF/Phsc3kSdztP2ipI8/LYTC+
x0gLKvIca7LnOjxOUvwzSrssdrIH+bhzjkv7nsnf9uhww/6TWmG3xRgdNWaqs7+/5OcSA
BnnRvTCqBBmLIDRsgBQ9nqyYQQ/noR/+1nd2toVAakQaGS1eDHpiip2cpvUGpKyz+Dg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=rDVW5y+D;
arc=none smtp.remote-ip=209.85.216.49
X-Received: from mail-pj1-f49.google.com (mail-pj1-f49.google.com [209.85.216.49])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 446CA606A327
for <git@vger.kernel.org>; Tue, 1 Dec 2026 15:43:45 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 446CA606A327
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-pj1-f49.google.com with SMTP id 98e67ed59e1d1-3b51a9606e8so3717476a91.3
for <git@vger.kernel.org>; Tue, 01 Dec 2026 07:43:45 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1796139824; x=1796744624; darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=mSFhQws1YNYPgfe0nLjLbq/vfZRAjOQOOHJrxJjmARU=;
b=rDVW5y+DCiHCh8X86KEEvpAwpNxqDKRWLFpaSau2Be6sbkgEwN21cnMVvwVaZSjAB8
CskqiA3KpxuL5CpJdex2cm/UcG+JFqRCo1NcbI8e2bbF0xmtOW8YHUWwa03YLxR58/et
wCnq81jG5ztPyKnOBWMpda6ZCLz0TkdZT3S85+GmJQz4P8ObLqv/fj08BJFKMHhVQGK0
mp+uZFC/fJdi8JGfNTbKHzskhiTu4oeb9MJHeBdSFfiQrwZarbgIQlLh8Nn4ytmp/IS+
CSERKFIL/viKLFikpQaKvmwvRUQS3RFUTiZh38upt0h8BjGG8PT2zZ06NhbWNmd06+3o
uUrg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1796139824; x=1796744624;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
:to:cc:subject:date:message-id:reply-to:content-type;
bh=mSFhQws1YNYPgfe0nLjLbq/vfZRAjOQOOHJrxJjmARU=;
b=BeZRGaCa89wwHWqc0nzZUdrMcuAr5ZtbHL/LJGhOaCkWMZDgy9fJIhKna10+KOE/lM
HkGxYhS17e3gNCTNs2WH7+h5eeFL95pfnIHqNJKdX59XMcrqvhz3oIPlGCrg/QIfADKW
9EdmfuxwRTRiBYx71YWXn85qhV5IbcTXvOuXmnyToXtX5mLSapHEgRqFrAIPpegpr2Sf
5OCBYpY4O6OTbaTI1ntBqAXgVh2vwnGzMoCC+EB7+vJ/oWWtVFnLICG4YB1EvRATvCTD
v/QnfCYNX13upYBXi9SA/uITTdgWbdLIPhc80SK8Q5aO/pau9SY0in6BW3FWL/LUKY5j
UiMA==
X-Gm-Message-State: APuU4Z+g+QqIufwwmm6O/Ua+D9ExdeJAtELQLk6MEQaYMnXAaUZuoeVa
OhmK2QMCS/iptOiKmUchhVBO6Dy8G3mQk6/7g5eIzYKOPs62tjXhBz/u
X-Gm-Gg: AZFdTZeE52mxGmAbPZIqLl/vlxmf6ScnRiBhx7t1I06hNLtJLCvfQuX8Qy16Zh6vi9v
/LkF8PZy2w4lJnTu2Fwx0iz+fV1fmFMzOnCx/v5EFKHCOXjc8qLG4eeNYTDk0eqmVBIv8roOKFb
xkVHniB/IqOXYVZtu7S6pautqKGLNDe0CLZGFT5CAkVKsaaEaOrSKwIr0KA997JVqUmW1pa8uiz
upXDCgWUTBcgX2nhK6aCmoTzA06qGx4O/0Qg42qBxUc1cwKqcEmY7IEJ6aGpFWj0BQ9Az4JfmFc
RDZLFKQ27yYvCM6XVnV0nZOK9v62QSDpfawC93GfI7gCH+lPEJnFVYNdZIkH9hylXo8prDN+bct
VW7U0dLsLORZC0++Vzbg0le+tnR6pLNjSljNqTdAS2reHnkCrn6/w6SrtwK6wwf4a7kGOZwyVir
w+ccSiWiN7lIanhT5WzYhDzBoC7+ZIW6odT1z3wuEgmHXV7U9ZT5hzRzHqWIeTYiARai4FMIhLL
oKZEbpbwR71oxwdMh5zPT3q9+EMS4d2OB+A2GrhNvb+1uwwGbfwEcq9y+VYcDspGUZEYPU37L85
sBQcbVCOgOggbpvpyZ4Ujg7mk9soWYABs3ZCuD68Kx8PbOFrwu4OtpatrEvsiiVdBDtFh+kIbmP
odT8ECE2gGYxu8IAL0OK3sw==
X-Received: by 2002:a17:90b:5546:b0:3b3:c44b:b779 with SMTP id 98e67ed59e1d1-3b41c935639mr40788246a91.46.1796139824370;
Tue, 01 Dec 2026 07:43:44 -0800 (PST)
X-Received: from localhost.localdomain ([223.190.80.135])
by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b41ad0b52dsm62591072a91.5.2026.12.01.07.43.42
(version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);
Tue, 01 Dec 2026 07:43:43 -0800 (PST)
X-Cc: git@vger.kernel.org,
Junio C Hamano <gitster@pobox.com>,
Derrick Stolee <stolee@gmail.com>
X-Mailer: git-send-email 2.54.0
X-In-Reply-To: <aw6--STmep1UZ3qy@pks.im>
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list