From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=103.168.172.159 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796209810; b=E69nmGRAjEwLpLoYHJFUNxzBz6WHzeakx8H2iQ5dCGt2NVA6HbES9SOwWUseTo2f4ijL t6RIACu/AFcOKg7it0gtz3u1cVcyCQWvuyAoinu1OjLw+LCqFLnk1f4LiW3XTKy7D7lyh uZyOqH5AS3A53//Q3Xh2hi0oiaxWMmNPuznAh1uG3N+CX1g9BzlNuXqa2e1Q789yy9R1s 2ZnBbArS5cRKi4E48fRlTxcTsFtAkSCqmlpS0M41mXLY3vNQSHYDjrayWnfa4/R8L8r6G EHdxvpsrfwSZIpIzpD+3qSiwmTMtWEuN9sL1xndyQVh3Knpl+aDyIT8VeC6syyXQmsQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796209810; h=DMARC-Filter:Received:Received:DKIM-Signature:DKIM-Signature: X-DKIM2-Info:DKIM2-Signature:X-DKIM2-Info:Message-Instance: X-ME-Sender:X-ME-Received:X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID: Received:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=8Q1AhpZv+ca0idq0y7ONSjx67etBj6M4oZLUoJ9Iu54=; b=rF9fmFCPPk0l1lH67owrMfGR0vNs1rHNvvOFcD9L9YjpiaXXEo2/qtJ/a15tZoSq+xie qY2Jcme9STqesREilemlQgvwEpOqd9afeerVkP7ciGD2PMWwEUAU+shk0ObSV80z892Xe u4j3sIbIRgoWdhgJg/yxj0Cf7LRK6DgGvaxmPUZQpyyp6XVIdgqRYOQTed1e8z6GByF28 3CfKU2+sbRIcl65FWwI4caUfWjGSZrz7Ty8RiKEwPgEbR1PiUpezJjP3FJPzcsjrFUN7q oSXIOU5N+cfPHE064MQmETHuw2/8WRxaHVQt7DO/hXOs4eoBe0gdVlijYd8HoQRCabg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=pks.im; spf=pass smtp.mailfrom=pks.im; dkim=pass header.d=pks.im header.i=@pks.im header.a=rsa-sha256 header.s=fm3 header.b=L+VoyeHa; dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=i2eOc2TN; arc=none smtp.remote-ip=103.168.172.159 Received: from fhigh-a8-smtp.messagingengine.com (fhigh-a8-smtp.messagingengine.com [103.168.172.159]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 06FB2606A322 for ; Wed, 2 Dec 2026 11:10:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 06FB2606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=pks.im Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pks.im Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=pks.im header.i=@pks.im header.a=rsa-sha256 header.s=fm3 header.b=L+VoyeHa; dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=i2eOc2TN Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfhigh.phl.internal (Postfix) with ESMTP id 092B6140012A for ; Wed, 2 Dec 2026 06:10:09 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Wed, 02 Dec 2026 06:10:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pks.im; h=cc:cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1796209809; x=1796296209; bh=8Q1AhpZv+c a0idq0y7ONSjx67etBj6M4oZLUoJ9Iu54=; b=L+VoyeHaLoRcvQzYSyaJUcxArP BSP0wr1gtLdWKaqHHobDc9kkLTKv1Hqt85se03Cp/uI53spYqJfp3TqYpecLkLBS yVgHOScCr2fk9fG/kX1Peo5s8n5U8bnNhArqCnDdT0M9WsNf1/STHJXOe99xLyRI 3VBnU7Wje1GElWOusxLuKqJ4HciH8CRoCxiv4FlcxIiiXoB8zd3SzEpw0hEgp4DH RkQfwYw1FOukyUiGdIySGt8y/74HxOmvx+gmHDjPS5BNFHdCUZNs4XL5+lbgChMw JpaSW6tQQsv6wTkIYubn4B6deLgId4DggY93lLTUILCBIn+dMb/NvyRNLVBQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1796209809; x=1796296209; bh=8Q1AhpZv+ca0idq0y7ONSjx67etBj6M4oZL UoJ9Iu54=; b=i2eOc2TNhF3h1eAkTiXeqvrt+23efKQ/KUYcYUmQJff1B4JqbYZ n8RCRI5SbEQXpee2x0F8ObGQwT1qsW+lGiNLeYO/SD20EiX9t5Y701uuJSXhVgoI SIel6jyktEPh1t//owfIFia4Oloy7LgScVAhAoKEiXQX2eRLwZkXWLyoaQic5F/l 5l/nN2ac903DwSIW1HzP3cw3BKITFGI/JX3Wwy2bMkfT5I6qP3gdnu5iUIoiz6rE I3tjaM444A9f39TGDljeY0Zl3DPTZouDYmNBJVrBQj2+Zvsi2gXOzPUPmzLHmsTU jBaALS0mLpQlg22e8zwbQ5KhaoC1U9/1mNw== X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=sign d=pks.im a=rsa-sha256; DKIM2-Signature: i=1; m=1; t=1796209809; d=pks.im; mf=PHBzQHBrcy5pbT4=; rt=PGdpdEB2Z2VyLmtlcm5lbC5vcmc+; s=fm3:rsa-sha256:KbkBBmv9ErlkE4orCHVfA3RDGAhA+GudVJQ/3k3DBnd5sjt JFcU4W8AMuW50L9GiQYVWLEJ/ll+OU3R9v33WgjaprLGztNcJ9zynDpX+C8yTHM2 9bVFlYUDBvviiqE8NFAwjEd/jQjYsCxyeSKxu1K3SY84fuXnPgMyAuGIw72hZl/Q 9RUznCWFuc9OCUjrDkU+2mOS3Z5kAX5uBC/CkFqQbDfKRtbIZ9pWcAEO/Dcv/1U8 x7eqt4tW+F4RLlAIHQTrB45Nu6/g41BD819k6KnygG0UJUHV+Nc6wkIoqkFRJVV7 +dTpx8SfzyebjdrgKCYPv+GkQW4ohNhF7NJjEXg==; X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=mi-m=1; hc=12; hn=cc,content-disposition,content-type,date,feedback-id,from, in-reply-to,message-id,mime-version,references,subject,to; Message-Instance: m=1; h=sha256:1tzR00KGHg9lWy97lROyd9WcuCw0j+ClUp9KK7WLd9U=:kpaIJ/oPz+7bcWik/ZWMXI2jONSXFUijSIWlcvgOa2Y=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTGWwmgNX2EGLnAhzOhSzlkYXM1fAyBlIA/Gn4EV5yP9d+7tAQMZJ+GdnslLc0O0mW BctBlgedpOB4BVlffevqeL2Dytlfh3FeDfkN5LAtT2J/f8VgQgp3njO1E2hzvLtAajS3wg Ybj4DsVzMBQ9P3TjMI1JED++zfFWuRg6SdU79OG40o4buxEvjgfCyO2gmV949Z5wNQO4Uw u1rp0KFdS1NP2ChxKNGFrF39+KnKb5NI0j6m7l16M4LITrVv0IbsKckh/bGoxlgZQFFKUO Dy6GGE8SDQPS4BPTG0io2XblItJiun4GG++XBspf7bG6/q7HJi99K9ig1q9B26SqLpbyZ+ c5q+HoktwQW66H7KL/NUlvob429io1vQ3e5pU+p0t0qXVJk4Mv2FK4ESKIkt5Q+rALryDE fAeUz+8bzJCTVJFkk5K44m9VJCYcS6s7GjkNirYNjvRIJRD0GMicPcgaL6npYLxBQfgSrW FIOF2IvR08BQZoJx1gh3rXfNOJCRtTArVg2wvzRwFrMHdJ225e8Zz6L0QXuCQuid1qIc4+ pyQIuon9lc868YYVETQKMF/yZmw6zqH28YYGD8eimtYSXUUD+Tcl1cKsV3lQaiufdYIhdu 4iZXI+VHoBdNXzF9o9I/FaxnlhVmIVIe5eKDkp3K9CKbCJ8H+KJGvMAvKWbA X-ME-Proxy: Feedback-ID: i197146af:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 2 Dec 2026 06:10:07 -0500 (EST) Received: by mail (OpenSMTPD) with ESMTPSA id c677f942 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 2 Dec 2026 11:10:04 +0000 (UTC) Date: Wed, 2 Dec 2026 12:10:02 +0100 From: Patrick Steinhardt To: Aniket Gupta Cc: git@vger.kernel.org, Junio C Hamano , Derrick Stolee Subject: Re: [PATCH v5 3/3] bundle-uri: do not die on unresolvable relative URIs Message-ID: References: <20261105152842.566318-1-aniketgupta3001@gmail.com> <20261126115803.30015-1-aniketgupta3001@gmail.com> <20261126115803.30015-4-aniketgupta3001@gmail.com> <20261201154338.51613-1-aniketgupta3001@gmail.com> X-Mailing-List: git@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261201154338.51613-1-aniketgupta3001@gmail.com> On Tue, Dec 01, 2026 at 09:13:38PM +0530, Aniket Gupta wrote: > > 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? I think that would make more sense indeed. > > 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? I'm fine with that. > > 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 '' has no uri". It made sense to keep the removal. Ah, that makes sense. Thanks! Patrick