Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 1C9D0200CC1 for ; Mon, 10 Jul 2017 22:31:20 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1B01A169331; Mon, 10 Jul 2017 20:31:20 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 60F8416932C for ; Mon, 10 Jul 2017 22:31:19 +0200 (CEST) Received: (qmail 22037 invoked by uid 500); 10 Jul 2017 20:31:18 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 22027 invoked by uid 99); 10 Jul 2017 20:31:17 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Jul 2017 20:31:17 +0000 Received: from [192.168.23.12] (host217-44-156-193.range217-44.btcentralplus.com [217.44.156.193]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 86AA91A0029 for ; Mon, 10 Jul 2017 20:31:17 +0000 (UTC) Subject: Re: Issue with static file in Tomcat 8.5.17 From: Mark Thomas To: Tomcat Users List Reply-To: Tomcat Users List References: <021fe217-a136-e834-62f9-1633b3a4e0e2@apache.org> <41785895-717d-a5b1-06ed-61a06ede37ed@apache.org> <1ac24a93-7fe4-3268-cb74-a132fc61e0f3@apache.org> Message-ID: <3fc0eeda-1d48-62b0-62e8-0a19857fe508@apache.org> Date: Mon, 10 Jul 2017 21:31:14 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <1ac24a93-7fe4-3268-cb74-a132fc61e0f3@apache.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit archived-at: Mon, 10 Jul 2017 20:31:20 -0000 On 10/07/17 20:59, Mark Thomas wrote: > On 08/07/17 20:06, Mark Thomas wrote: >> On 07/07/17 23:05, George Stanchev wrote: > > > >>> Since you cannot reproduce it, perhaps I can package up the tomcat + the > test app in a zip and upload it somewhere... >> >> That would be helpful. I've tested this in multiple environments and I >> can't reproduce it. > > Many thanks to George for putting together the test case. I have now > been able to reproduce this. > > The problem is related to the new code that handles the case when a file > is stored in one encoding but served in another. Since changing > encodings can change the value and number of bytes served (for example > serving £ in UTF-8 requires two bytes but only one in ISO-8859-1). This > code did not handle requests that use accept-ranges correctly. While the above is true, the actual problem looking more closely is that the content length can change when conversion is used. Mark > > I am going to cancel the current 8.5.x and 9.0.x release votes, fix the > bug and re-roll the releases. > > Mark > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org