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 BD23B200BDB for ; Mon, 12 Dec 2016 22:14:14 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id BBA7F160B22; Mon, 12 Dec 2016 21:14:14 +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 DDD4A160B1A for ; Mon, 12 Dec 2016 22:14:13 +0100 (CET) Received: (qmail 27283 invoked by uid 500); 12 Dec 2016 21:14:12 -0000 Mailing-List: contact user-help@guacamole.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@guacamole.incubator.apache.org Delivered-To: mailing list user@guacamole.incubator.apache.org Received: (qmail 27273 invoked by uid 99); 12 Dec 2016 21:14:12 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Dec 2016 21:14:12 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id A7A8DC0370 for ; Mon, 12 Dec 2016 21:14:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.998 X-Spam-Level: * X-Spam-Status: No, score=1.998 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=guac-dev-org.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id wvIBYhIY6j3V for ; Mon, 12 Dec 2016 21:14:10 +0000 (UTC) Received: from mail-ua0-f176.google.com (mail-ua0-f176.google.com [209.85.217.176]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 4C6305F19B for ; Mon, 12 Dec 2016 21:14:10 +0000 (UTC) Received: by mail-ua0-f176.google.com with SMTP id 20so93861090uak.0 for ; Mon, 12 Dec 2016 13:14:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=guac-dev-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=zrPrPOkqUIqeHadyraOhy/7uS39ye65ztqlR5C0dpWo=; b=hq+GOmhM8AtU8ADI9tK1DtOH6P+QxMx5PDzxM0Wp/mcnLILU8Mk8JWzJdMetB1wL1Y Nt5qaVlSks/HFyh0j86eUUXri3KZvP8QkxHal09YzJLG33t4FWIQtQlW2Ee/Ahs0tIJ6 fLuk7ISzzkBSYkQ/MmDPVRF6ZT+Dt5A8SdyxDPkoisAPyCJGI6xncX+2S1CssFz+J9Ot dnHgYUheghyCGT1HqqGhadw8WS8JWfVDpMqTZs9VdiEc6yc4JN6N633UQ/vBd29lk/Jv SNHKA23ASeG2xS1oYGq//gBWpZNs4A2ZrZt+PsOgKATO57Aq74OdEvGwcsrzmgdtcukI tRbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=zrPrPOkqUIqeHadyraOhy/7uS39ye65ztqlR5C0dpWo=; b=IpygdsyzeubqIhHPZRXYa9rMS4IWag9yf1nxiKWdC00fS4+Frrmq2nUzW862d5sOrS b2J6fpkoaVk9pJBv8dgOzyQWitj3HFfbZOCKWU33Fo3YY3/dMJikUNomPG9lavwIwDEZ Ln2qyKPSHNRj9uuulIwmwxksIGtu68RSGGONKIX3Ja7D6ak75jFv8AaZD8GEFfSAzm81 zfqIhJDIJFBZJlEqEfzSuzuUgpcQkyCMbBq4wWtr2SpJ3bDtUvG422BOLk8M+S70CNWN zHJhCv09c6xGSobnWi0sXiSdlZveFBwW6N7ebQ3m+5oDuVO0W0JixQ6y1mIS8vci/088 b05Q== X-Gm-Message-State: AKaTC03Y3jKAByotKnKX4WpUhdFn6e3Ty7gJdmUfjIYKfTCVxXuTOTJe7r1sXAj9XyTfziwRyYTTYqRdpKr77A== X-Received: by 10.176.65.33 with SMTP id j30mr76313026uad.94.1481577243861; Mon, 12 Dec 2016 13:14:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.159.36.105 with HTTP; Mon, 12 Dec 2016 13:14:03 -0800 (PST) X-Originating-IP: [157.130.212.6] In-Reply-To: References: From: Mike Jumper Date: Mon, 12 Dec 2016 13:14:03 -0800 Message-ID: Subject: Re: Error while saving a file from application to Guac virtual drive To: user@guacamole.incubator.apache.org Content-Type: multipart/alternative; boundary=94eb2c12464453ed3f05437c95a7 archived-at: Mon, 12 Dec 2016 21:14:14 -0000 --94eb2c12464453ed3f05437c95a7 Content-Type: text/plain; charset=UTF-8 On Mon, Dec 12, 2016 at 12:53 PM, Antony Awaida wrote: > Hi again Mike: > > What if we create a "staging" download folder and there is a script that > checks the size the folder every X seconds. Once the size of the folder is > stable, it moves the file to the actual Guac download folder? > > And once that approach fails, will there be a staging folder for the staging folder? Turtles all the way down? ;) You can try this, of course, but it is no more guaranteed to work than what Guacamole is already doing, and it may actually make things worse: Your proposed heuristic assumes that a file is written continuously until the application has finished saving the file, but this will not hold in practice. What if the application writes the file slowly? What about *extremely* slowly? The heuristic would incorrectly conclude that the file is safe to download, automatically move the file to the download folder, and effectively bypass Guacamole's own heuristics, ultimately resulting in the download of a partial file. - Mike --94eb2c12464453ed3f05437c95a7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On M= on, Dec 12, 2016 at 12:53 PM, Antony Awaida <antony@apporto.com>= wrote:
Hi again = Mike:

What if we create a "staging" download f= older and there is a script that checks the size the folder every X seconds= . Once the size of the folder is stable, it moves the file to the actual Gu= ac download folder?


<= div>And once that approach fails, will there be a staging folder for the st= aging folder? Turtles all the way down? ;)

You can= try this, of course, but it is no more guaranteed to work than what Guacam= ole is already doing, and it may actually make things worse:

=
Your proposed heuristic assumes that a file is written continuou= sly until the application has finished saving the file, but this will not h= old in practice. What if the application writes the file slowly? What about= *extremely* slowly? The heuristic would incorrectly conclude that the file= is safe to download, automatically move the file to the download folder, a= nd effectively bypass Guacamole's own heuristics, ultimately resulting = in the download of a partial file.

- Mike

--94eb2c12464453ed3f05437c95a7--