Article View: linux.kernel.git
Article #3674Re: [PATCH v4 3/3] bundle-uri: do not die on unresolvable relative URIs
From: Aniket Gupta
Date: Mon, 23 Nov 2026 22:25
Date: Mon, 23 Nov 2026 22:25
20 lines
11738 bytes
11738 bytes
> This is minor, but because bundle_list_update() places the bundle in > the '.bundles' hashmap of 'list' before we come here, a failing entry > will stay in the hashmap with '.uri' of 'bundle' set to NULL. You are right. I am able to repro it with a server that advertises a bad entry: after the three errors we already print there is a fourth one, "error: bundle '<id>' has no uri". A list given to --bundle-uri does not show it, as that whole list is rejected before we get there. > which may or may not be what we want. After all, we have already > issued an error message, so...? I dont think we need it since the earlier errors already say what is wrong. I tried dropping the bundle from the list when its URI cannot be resolved. The clone behaves the same, just without the extra error, and the bundle-uri tests still pass. I did not want to hide it in fetch_bundle_uri_internal(), as a bundle that is advertised without any uri should still be reported, like we do today. Will do the drop in v5 and add a test for it.
Technical Details
Message-ID:
<20261123222541.60600-1-aniketgupta3001@gmail.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76187-linux-kernel-git=dewy.ruReferences:
<20261105152842.566318-1-aniketgupta3001@gmail.com> <cover.1795415793.git.aniketgupta3001@gmail.com> <ce37d9588d833d306df3cc9d0e656e09c32e6b44.1795415793.git.aniketgupta3001@gmail.com> <xmqq1p8b5kfw.fsf@gitster.g>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76187-linux-kernel-git=dewy.ru
From: aniketgupta3001@gmail.com (Aniket Gupta)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH v4 3/3] bundle-uri: do not die on unresolvable relative URIs
Date: Tue, 24 Nov 2026 03:55:41 +0530
Organization: Usenet Network
Message-ID: <20261123222541.60600-1-aniketgupta3001@gmail.com>
References: <20261105152842.566318-1-aniketgupta3001@gmail.com> <cover.1795415793.git.aniketgupta3001@gmail.com> <ce37d9588d833d306df3cc9d0e656e09c32e6b44.1795415793.git.aniketgupta3001@gmail.com> <xmqq1p8b5kfw.fsf@gitster.g>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="3999023"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:pIIk16bcYJZ/rn34L/xVvp0k6Mk= sha256:XN/6J+tK198Yy6XiZm9O+BB+AOO7kwaI9XCK5eNWgxw=
sha1:YLhnVXWHxGK2R2HJyLvatW9SYd8= sha256:oS1xvfPqQg/2jtuVMBfC/yorAQF2SMLWz1SLUhxemqc=
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 E6DE3125DC8; Tue, 24 Nov 2026 01:26:01 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31
tests=[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 Vuvrleku4Y76;
Tue, 24 Nov 2026 01:25:59 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-76187-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 AAF68125DC3; Tue, 24 Nov 2026 01:25:50 +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 CFF6D29E8F; Mon, 23 Nov 2026 22:25:48 +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=1795472748;
b=wrmzNDbPp/UWLmjxDhXPc/kiLiPl62NP/lVi6Wl3X/LZSf4sVxDUsNAe+snv93q0/gLx
5IUISO8iw/h68pBncdc6Amh7vY8RcCullvVNcPOThz1CCITbC1rAaRkVeH0gJXZxb8Q8s
Zfwweihf15kMJ+D/pxP0p3qRQZvohwPNSDCKBe8SQ+U5WFsjD5DInlXgCejyTFmg5IwXY
98iTz1YlhhqS1+inz1l88cAkh7HYY5Dp9fdg4SjouxJmgsN9+FDuNE/zKOjtjs5U68s2q
FUgPbe3Z+cLMZEbUfEt6DPAcCpPznefT3qFjnO1p5vTl/xo1O7h8QOV/Yuj4zFEI0mw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795472748;
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=OfAcoRbmopzXJQ03Lq48cglqJd9e17BZdWtQAftXNW8=;
b=nxW0TeH5VkP2Z1aTCbhWfBnQS43eC0iIFbSGRB46lc/dHZxJYh3nQptExk6IQ7qpSuIC
87oBIEIcH/G6uA5GWPLRPyGymztDIzOiEhasiWdwcOk042cFDBtg9D8NW9EeOQznphcaP
vGJYH6ZdPyJ1ytyRqdtG5Kmr7NaE9MMg33fFwlC/oGOSbG2qMFmUT6lSFOUbH0826WYwU
TnI9h6qCyhI9yQA7mge3l59sj/E+X3CFtJGS/JdmAOm+e4qbvEFUUYyHtFNGm8xst+Mon
dF9FoaUqWrthW+CRkDs4cnk8YpdLMTXBNwasbKi0G64n80ksMJkpbB62c6Afj3FYHUw==
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=takXWQMv;
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 831E3606A32E;
Mon, 23 Nov 2026 22:25:48 +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=takXWQMv
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.216.52
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1795472747;
b=OuyR0xWcAsMYUr5/4RGTu7QznXFeH4Ys5ii+HSNO/pZg++yiHg7kJJpF323Gi+yH59fb
wVPiaXuQ8oCOrB4jOITPVr8qh6wlxeUy6xAHDDURRI590n0NY9T8EC6LcvbAC2PwG9J95
M6n59Ikh7VDtiHpQuVYDTLiLhYo+zaefkl5CI8XmDoCiaXqquGUennvXn2Qvu+sxUJNNd
M5wAXVtlZXgGSaocQf7q9LFWSGK7bFwFfsssQtCgDHLJQZTd4i8hzSUdtxdj7XY3MRUhy
jDTD73XzZcoWM6vnRZ0cOvSRhzuBmkqPfOoBGXzUf+pNq2fkkIIUmoDaxdx9TgzE4gA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795472747;
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=OfAcoRbmopzXJQ03Lq48cglqJd9e17BZdWtQAftXNW8=;
b=34T1kyXpWQs4+l3FdzTRAvFvuHN/qJ5NdkL9QzOrlyh8eqbz7B5V923x859HCnzV9iug
+lhFs/+SeFmoNToiUHs4uvVSaAkPFK1kFAlmJ6OstjnLtXt8Q9myYnM5YwPEXwNPc4fHh
7FehNsOHXAH2w526dywwpaIQME3ExxruEXKsqUNa6Qh+ziElimGOwlNGJVNtDoyTHDhg1
IDOw4Bi47vvQ1A2THICCpEf+ZESMUdngUd49sJsjwrlNgFKHYhsNbvzP+FIDdh/uMazRQ
Uny2eewIigoWsdhxvnTu50fTLKEis9sFQXXs+FyZx9ylZHp1t+C+Jjqdb0WwjPPCICQ==
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=takXWQMv;
arc=none smtp.remote-ip=209.85.216.52
X-Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52])
(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 4D24B606A31E
for <git@vger.kernel.org>; Mon, 23 Nov 2026 22:25:47 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4D24B606A31E
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-f52.google.com with SMTP id 98e67ed59e1d1-3b40f4d4b5dso1545425a91.1
for <git@vger.kernel.org>; Mon, 23 Nov 2026 14:25:47 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1795472747; x=1796077547; 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=OfAcoRbmopzXJQ03Lq48cglqJd9e17BZdWtQAftXNW8=;
b=takXWQMvqmmreKKjtUXP9wOkJN/cvvJH8CtpolhhNfQtwyPpTc5WvTf1/hpfZnZmxI
h1Mm6kCzZYrRTr1k/zC6bN6giD91DRCHHn6P6A1Up5RvZ81lZQral/js1KpvFpBw2X91
jlUOo6LoWMgLm0avfQRnKxJIeVabwxrOKzzYOGCtszeJDYNgwA3BvSTzoivAYBMBvmPN
o+DbjJSUdfYlWD9mqJDP3MR2PKzdKFVFSMfZml4Dgy9r5Ee4xnlDwET/ylpj/CeakKo4
VwyvffWQtv2YMQo4bKPg0GTGt4jHnyETZbd4BbSbCn0KXe6Z3sED9T82QnD34YoVGJNV
gPnw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1795472747; x=1796077547;
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=OfAcoRbmopz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KUhrQ4Ge+g5lb5bxSZFfi/Hrj8ZoekBEAu667U7oI3D4w+
9nQyruwh338bgDc/5XiItnGWvHn3bZmg13dnfvpVW0OjSDHhqfwgRVUpWCxyYjVk0Y/EE0hDVJq
gVYYYGY1Ar7GaUHkT9/czOg==
X-Received: by 2002:a17:90b:2688:b0:3b3:b71e:b2e7 with SMTP id 98e67ed59e1d1-3b41c92a209mr10575386a91.36.1795472746555;
Mon, 23 Nov 2026 14:25:46 -0800 (PST)
X-Received: from localhost.localdomain ([103.25.231.125])
by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b405d639fdsm22972365a91.10.2026.11.23.14.25.44
(version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);
Mon, 23 Nov 2026 14:25:46 -0800 (PST)
X-Cc: git@vger.kernel.org,
Derrick Stolee <stolee@gmail.com>,
Patrick Steinhardt <ps@pks.im>
X-Mailer: git-send-email 2.54.0
X-In-Reply-To: <xmqq1p8b5kfw.fsf@gitster.g>
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