From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: Bug in url-retrieve-synchronously from url.el on redirect Date: Sat, 11 Jul 2020 02:37:50 +0700 Message-ID: References: <08fad79e-9b6b-6ff4-66fd-c32fdf5b7189@grinta.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10308"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs developers To: Daniele Nicolodi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jul 10 21:38:58 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jtyrK-0002XW-Ev for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Jul 2020 21:38:58 +0200 Original-Received: from localhost ([::1]:47368 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jtyrJ-0004Mg-GE for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Jul 2020 15:38:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59410) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jtyqT-0003Xw-7Z for emacs-devel@gnu.org; Fri, 10 Jul 2020 15:38:05 -0400 Original-Received: from mail-vs1-xe35.google.com ([2607:f8b0:4864:20::e35]:41144) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jtyqR-00069g-GA for emacs-devel@gnu.org; Fri, 10 Jul 2020 15:38:04 -0400 Original-Received: by mail-vs1-xe35.google.com with SMTP id b77so3594541vsd.8 for ; Fri, 10 Jul 2020 12:38:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mt1Dm+M1uq5sk28XrPYAEPE9Mdz8aqGQZl7dDuBZliM=; b=qrtwarM8QVGCayG7lwRRP+6QkIrCpYX9b4cAfxUr/VgVPjabJdhnD+tk/YUpkRaTRH 81BN2h4AA7giX/kt+9CAUOok/qJEZKEZOC16UMOTRhRX5299oa37NES3KbquGH1K5zLs ohcAgv6StR5k70cK6MJKT4Wl8CUhWh8ZmJOrV7A6bJP/6h/6cd2lZpK3kl61jq1VlXxk nPFB4PYGwYI5cYarSIDiO6N2wiVIaYus/xz0ysXNNugDiSq6ky7UQ1ryJHqwC3Bk/k7R RfQoL1Nl351nFsz24QiMdv4F7T+BOhAeKgqZr47rUASQE4A3/FKmXM1RjGOpjGvxXCaT 5mcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mt1Dm+M1uq5sk28XrPYAEPE9Mdz8aqGQZl7dDuBZliM=; b=OWZm5ePJ1f2vu+qO+XGpAaIWSabAhVuh4oSVgRClP90kaLzomOCBVaL0W56puuTKo2 i7v1Ifn14Cc0KnwnhUOkw6bqEPzNEvdpc7Wts7Jd4/MHiiDK4K7V0Qs/OofP2YDsbW/X 6jBfX+F1XrHtUjlAd8qKEt1UJppwPKWk/sbzQ6XWNX+Q5i76xrhBDD4RSQrUGt0HuCai vXHEkyaiSsfmdQZeJ7hs/rcDdbORnq3+ALfunjlh3rxWtogEAU7sQhr+8u8PFUCF3Uqg fnfE5Vp/XMWSaDhSCVwLVT9JjFXrqnIX/xuQ7D8hGeTSBqfSojmZGd4j/22muuNvp5d8 bTew== X-Gm-Message-State: AOAM533YcfqV9noVwfx1jSA0uG5pp0xijAZRXRggEGRYMNGvmAxc1bmT Y2UiFR8omXQfu/D6cuqJu2Lz47IqBHIWGmYCubdGKLIXZ4M= X-Google-Smtp-Source: ABdhPJxXP3jhwZOUXFVSJfNEmHRY22lVZ/okxsJ+xoNyij9Hf4SLMfJ+xSN+TkOvbzgPpITL7usFV9q/nLUBBqslDBc= X-Received: by 2002:a67:1382:: with SMTP id 124mr51687250vst.75.1594409882323; Fri, 10 Jul 2020 12:38:02 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::e35; envelope-from=yurivkhan@gmail.com; helo=mail-vs1-xe35.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:252835 Archived-At: On Sat, 11 Jul 2020 at 01:49, Yuri Khan wrote: > > On Sat, 11 Jul 2020 at 01:18, Daniele Nicolodi wrote: > > > url-retrieve-synchronously fails to obey redirect responses if the > > returned "Location" header contains spaces: it redirects to the URL > > truncated to the first space. It seems that spaces in the Location > > header value are allowed (at least ngnix produces headers like that). > > They are not, and you should report it as a bug against nginx. It > should be percent-encoding the space. It should also be > percent-encoding any non-ASCII characters. Actually, I went along and reported it myself, with an example that clearly demonstrates a bug in nginx: https://trac.nginx.org/nginx/ticket/2016