Re: [Storagesync] Storagesync Digest, Vol 5, Issue 1

Markus Unterwaditzer <markus@unterwaditzer.net> Thu, 03 December 2015 12:17 UTC

Return-Path: <markus@unterwaditzer.net>
X-Original-To: storagesync@ietfa.amsl.com
Delivered-To: storagesync@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4F9C11B3468 for <storagesync@ietfa.amsl.com>; Thu, 3 Dec 2015 04:17:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.95
X-Spam-Level:
X-Spam-Status: No, score=-1.95 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_DE=0.35, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bDezzVJaiOdt for <storagesync@ietfa.amsl.com>; Thu, 3 Dec 2015 04:17:01 -0800 (PST)
Received: from draco.uberspace.de (draco.uberspace.de [95.143.172.133]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C5AA01B3464 for <storagesync@ietf.org>; Thu, 3 Dec 2015 04:17:00 -0800 (PST)
Received: (qmail 24885 invoked from network); 3 Dec 2015 12:16:55 -0000
Received: from localhost (HELO localhost) (127.0.0.1) by draco.uberspace.de with SMTP; 3 Dec 2015 12:16:55 -0000
Date: Thu, 03 Dec 2015 13:16:48 +0100
From: Markus Unterwaditzer <markus@unterwaditzer.net>
To: François Kooman <fkooman@tuxed.net>
Message-ID: <20151203121648.GA19890@chromebot.fritz.box>
References: <mailman.108.1449000023.26068.storagesync@ietf.org> <1449004445.2745758.455126129.5028FD2B@webmail.messagingengine.com> <CAO_YprZhCmUxEf=aGCYL=+CLbjUoD1ifpDFsrS7N40Npo4wr+w@mail.gmail.com> <1449050174.3667910.455617161.12EEE3C5@webmail.messagingengine.com> <1449051540970-b577e6c2-393e54ef-bbe05be4@gmail.com> <1449052128.3674794.455635937.667C3E1F@webmail.messagingengine.com> <CAPpPfeAdrCZcsYZo7=W6N14K4F2LutXN8BFTetikzKZSr8+vVA@mail.gmail.com> <259424f4.2bca.1516717ef55.Coremail.fsong@bjtu.edu.cn> <56600F0A.9000200@tuxed.net>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <56600F0A.9000200@tuxed.net>
User-Agent: Mutt/1.5.24 (2015-08-30)
Archived-At: <http://mailarchive.ietf.org/arch/msg/storagesync/0Bb5z_luehDag_NsXfRom2YgBVs>
Cc: storagesync <storagesync@ietf.org>
Subject: Re: [Storagesync] Storagesync Digest, Vol 5, Issue 1
X-BeenThere: storagesync@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Mechanisms to synchronize client file systems with Internet-based data storage services <storagesync.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/storagesync>, <mailto:storagesync-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/storagesync/>
List-Post: <mailto:storagesync@ietf.org>
List-Help: <mailto:storagesync-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/storagesync>, <mailto:storagesync-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 03 Dec 2015 12:17:03 -0000

On Thu, Dec 03, 2015 at 10:44:42AM +0100, François Kooman wrote:
> On 12/03/2015 10:06 AM, fsong@bjtu.edu.cn wrote:
> > If we really want to discuss the Pros and Cons of WebDAV, can we
> > mark these three reasons as disadvantages of WebDAV? any support for
> > that?
> 
> Personally, I do not think that is fair.
> 
> > 1) it's a lot of work to implement this without using an existing
> > WebDAV library 
> 
> I do not see a problem in reusing an existing WebDAV library. This has
> the added benefit that you get a lot of functionality 'for free' and
> that existing test suites are available for testing compatibility. This
> is purely a practical argument!
> 
> > 2) in practice, a lot of WebDAV servers get it wrong,
> > or don't implement all of WebDAV. It's very annoying for client
> > implementers to have to deal with servers that e.g. chose not to
> > implement LOCK and UNLOCK. 
> 
> The point is not to have a fully compliant (whatever that is exactly)
> WebDAV server. Either this ML (or remoteStorage specification) could
> determine a subset of WebDAV that would be required to be implemented.
> E.g. we exhaustively list the verbs that need to be implemented and
> their expected behavior. If we keep this a limited as possible and stay
> away from experimental features we have a high probability that most
> libraries will get it right! If we stay away from locking and ACLs the
> library situation looks a lot brighter :)

WebDAV's syntax is excessively verbose to allow non-standard properties on
files and folders, non-standard querying methods for `calendar-multiget`,
PROPFIND and friends, and etc. The whole point of XML is extensibility at the
cost of verbosity.

If you take that away from your newly defined subset of WebDAV, what is left? A
new protocol which 

- requires extra requests for creating and deleting folders (while there's
  nothing left that would speak against implicitly creating those). Sure you
  have GET, PUT, DELETE for documents

- has excessively verbose syntax for listing folders, but without the advanced
  filtering capabilities.

- is not backwards-compatible with most client implementations and therefore
  has to be rebranded as a new protocol so users don't try to plug a "full"
  WebDAV client into a server that only implements your subset

Especially that last one. If you're going to slice off 90% of WebDAV's
features, you might as well define a new, clean protocol.

> 
> > 3) we don't really need all these advanced
> > features on top of standard HTTP, just supporting GET/PUT/DELETE for
> > resources, and adding a simple folder description format, is enough
> > for most applications.
> 
> Exactly!
> 
> > For the target of our ISS group, whether the WebDAV can be reused is 
> > critical.
> 
> Well, my point is that there is little reason to reinvent the wheel if
> the only benefit is to use JSON instead of XML for folder listings. The
> amount of experience and available tooling for WebDAV is already huge!
> It would be a waste to throw this away just for liking JSON better.
> 
> But maybe there are other reasons using (a limited set of) WebDAV is
> impossible or unwanted...
> 
> Cheers,
> François
> 
> _______________________________________________
> Storagesync mailing list
> Storagesync@ietf.org
> https://www.ietf.org/mailman/listinfo/storagesync