From nobody Sun Aug 21 06:42:06 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4M9Qrv0jx4z4YyFh for ; Sun, 21 Aug 2022 06:42:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M9Qrt5mz0z3bMP for ; Sun, 21 Aug 2022 06:42:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4M9Qrt4qqxz120S for ; Sun, 21 Aug 2022 06:42:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 27L6g6Tq079920 for ; Sun, 21 Aug 2022 06:42:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 27L6g6c1079919 for bugs@FreeBSD.org; Sun, 21 Aug 2022 06:42:06 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 243299] fetch(1) fails to handle redirects on a valid URL Date: Sun, 21 Aug 2022 06:42:06 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pprocacci@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661064126; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FnIT5ZcrhI6q1B10EKfXz+clquQqhIw8GMee7b7ccUw=; b=Fp0YmpYcy5ZZYZrasZiOcbO6xvRCNiaUgsSDuKEpoObaCsJ3puKd9XoJTfZLHIw5RCi2pn 40vdfp3JWsrYIbQp8PAa0YAGnYVxz5YsUfS2xQZSklu/HVIWUZ9y6/ySvrxFF8cnxgV6zD 7E+Y5LWN3qhj+AeHz7FCC2h5qMTj3yUVc/MYzGo8nxilChJSnClzHKCyqxATByCuo34F/W 3I8fClPo1QEyMvoqBTB3AYlbZZG3BBxrSBJxekpaZKLCq4PM6w2mYWukFKFXitP4i7hJ6F 2RjVZzhQ0h+WyA7383DBePAeJBrw+sdaGz9cguTDj+tEkSjXvzx9RJGaMPC5VQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661064126; a=rsa-sha256; cv=none; b=gQ0V2dW7ZjpBlmwDZs6UtLrBS3BS9PMiwfSDwnlVnJ00JwpNY6OVsDmOmOYwEsmH4Rcewy vzEL+MuDqDVL48Adz4gYGZ+U74hMXwV/up31neTOqEY5HpvXPmuAw0R2NeNyuOJA3CN9rS xL2FQWj5wlHALOCTw96pgssBBwMJOAuHqv4dqU9FeA3olqzjveLBlbnN+5+CBRPn+gF2ji 7cMj3MxkcRG5ziOXdmdtwJwSx0EbK8wy1mG8C2n7cy7HOKDN5w0MKiDPh1JyjkXznzP5md M+Oamb6d5mTX0fusUGnVCBxP7YnYlNkxiJHdRznjc8FuMoDr1GBooC3bWvtX2g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D243299 pprocacci@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pprocacci@gmail.com --- Comment #2 from pprocacci@gmail.com --- Created attachment 236031 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D236031&action= =3Dedit Add support for relative urls in redirect responses RFC 7231 has support for relative urls. I saw this bug report and had to check. I didn't believe it. The attach patch fixes the op's issue, but truly it needs to be tested with= all kinds of responses. Additionally, I program in C in a much much different way than the source file's layout. Safe to apply, sure, but it'd be wise for someone else to g= ive it a once over to ensure it conforms to your standards; something someone e= lse can do if they so choose. --=20 You are receiving this mail because: You are the assignee for the bug.=