From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.216.49 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== 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== 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 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 ; Tue, 1 Dec 2026 15:43:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 446CA606A327 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com 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 Received: by mail-pj1-f49.google.com with SMTP id 98e67ed59e1d1-3b51a9606e8so3717476a91.3 for ; Tue, 01 Dec 2026 07:43:45 -0800 (PST) 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) 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) From: Aniket Gupta To: Patrick Steinhardt 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 Date: Tue, 1 Dec 2026 21:13:38 +0530 Message-ID: <20261201154338.51613-1-aniketgupta3001@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: References: <20261105152842.566318-1-aniketgupta3001@gmail.com> <20261126115803.30015-1-aniketgupta3001@gmail.com> <20261126115803.30015-4-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-Transfer-Encoding: 8bit > 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 '' has no uri". It made sense to keep the removal.