Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 187817980 for ; Mon, 5 Dec 2011 14:20:59 +0000 (UTC) Received: (qmail 28919 invoked by uid 500); 5 Dec 2011 14:20:58 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 28876 invoked by uid 500); 5 Dec 2011 14:20:58 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 28869 invoked by uid 99); 5 Dec 2011 14:20:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2011 14:20:58 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of julian.reschke@gmx.de designates 213.165.64.23 as permitted sender) Received: from [213.165.64.23] (HELO mailout-de.gmx.net) (213.165.64.23) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 05 Dec 2011 14:20:50 +0000 Received: (qmail invoked by alias); 05 Dec 2011 14:20:28 -0000 Received: from mail.greenbytes.de (EHLO [192.168.1.140]) [217.91.35.233] by mail.gmx.net (mp053) with SMTP; 05 Dec 2011 15:20:28 +0100 X-Authenticated: #1915285 X-Provags-ID: V01U2FsdGVkX1+1PFVG+8W1sMb3ESKdI3pmckk3Dvw0t6qM9AYYOp CfE1GVrDrBphen Message-ID: <4EDCD32A.2070502@gmx.de> Date: Mon, 05 Dec 2011 15:20:26 +0100 From: Julian Reschke User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: Thomas Mueller CC: "dev@jackrabbit.apache.org" Subject: Re: JSOP extension points, was: JSOP References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 On 2011-12-05 15:02, Thomas Mueller wrote: > Hi, > >> Unless I'm missing something, a today's JSOP parsers will be unable to >> parse future messages that contain an extension defined like the above, >> as they won't know how to skip over it. > > What we currently don't have, and probably should add, is a way to > negotiate the format / protocol version (for example in the first message, > similar to the "HTTP/1.1" in "GET / HTTP/1.1"). > > But generally, parsers shouldn't silently skip over things they don't > understand, except if it's explicitly defined to be implementation > specific / optional (#pragma and such). Could you provide examples of > languages that do support such extension points? Most XML-based formats do; the same applies to JSON -- it's the "must ignore" pattern. The "must understand" pattern makes it very hard to deploy new things, as you can't use it until each recipient understands it (this is why, for instance, the HTTP Expect header field is a big failure). Best regards, Julian