Re: [MMUSIC] RID Open Issue 3: Escaping in Extension Parameters

Magnus Westerlund <magnus.westerlund@ericsson.com> Mon, 02 November 2015 05:06 UTC

Return-Path: <magnus.westerlund@ericsson.com>
X-Original-To: mmusic@ietfa.amsl.com
Delivered-To: mmusic@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A27961B45B8 for <mmusic@ietfa.amsl.com>; Sun, 1 Nov 2015 21:06:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.201
X-Spam-Level:
X-Spam-Status: No, score=-4.201 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001] 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 pnrOWsWWFTQr for <mmusic@ietfa.amsl.com>; Sun, 1 Nov 2015 21:06:44 -0800 (PST)
Received: from sessmg23.ericsson.net (sessmg23.ericsson.net [193.180.251.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8C7DE1ACED0 for <mmusic@ietf.org>; Sun, 1 Nov 2015 21:06:43 -0800 (PST)
X-AuditID: c1b4fb2d-f79626d000004282-24-5636ef61feae
Received: from ESESSHC005.ericsson.se (Unknown_Domain [153.88.183.33]) by sessmg23.ericsson.net (Symantec Mail Security) with SMTP id 31.7F.17026.16FE6365; Mon, 2 Nov 2015 06:06:41 +0100 (CET)
Received: from [127.0.0.1] (153.88.183.153) by smtp.internal.ericsson.com (153.88.183.35) with Microsoft SMTP Server id 14.3.248.2; Mon, 2 Nov 2015 06:06:00 +0100
To: Peter Thatcher <pthatcher@google.com>, Adam Roach <adam@nostrum.com>
References: <5636E9BC.5070902@nostrum.com> <CAJrXDUEvV3rM=i4U3mzjDVGoT5V9GJKQ9KYjOuJPmjxxXCWEoA@mail.gmail.com>
From: Magnus Westerlund <magnus.westerlund@ericsson.com>
Message-ID: <5636EF33.3090108@ericsson.com>
Date: Mon, 02 Nov 2015 14:05:55 +0900
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0
MIME-Version: 1.0
In-Reply-To: <CAJrXDUEvV3rM=i4U3mzjDVGoT5V9GJKQ9KYjOuJPmjxxXCWEoA@mail.gmail.com>
Content-Type: text/plain; charset="windows-1252"; format="flowed"
Content-Transfer-Encoding: 8bit
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrGLMWRmVeSWpSXmKPExsUyM2K7om7ie7MwgxXXTSz2/F3EbjF1+WMW i2vLX7M6MHss2FTqsWTJTyaPWTufsAQwR3HZpKTmZJalFunbJXBl3Dn9n6ngjUjFui+XWRoY Fwt0MXJySAiYSJyb+YIJwhaTuHBvPVsXIxeHkMBhRokb0y6xQzjLGCWmLXnNDlIlLOAhcXTx TWYQWwTIPjd7D1AHB1BRocS7jYogJrOAusTVxUEgFWwCFhI3fzSygdi8AtoSf59dA5vCIqAi ce/JUrC4qECMxPtNqxghagQlTs58wgJicwoESpw5vJUNYqS9xIOtZSBhZgF5ieats8EOEAIa 2dDUwTqBUXAWku5ZCB2zkHQsYGRexShanFpcnJtuZKyXWpSZXFycn6eXl1qyiREYuge3/Nbd wbj6teMhRgEORiUeXoNEszAh1sSy4srcQ4wSHMxKIrxeN4BCvCmJlVWpRfnxRaU5qcWHGKU5 WJTEeVuYHoQKCaQnlqRmp6YWpBbBZJk4OKUaGB3/CucEfWBLWTqNa+Hszl/2m+bOjIgPqC5V fCzxIIev0TSGx2j1oSmP56eKvpp22e5hU+G9jMvqqyY+f7yc43TUnco9MVIaO9wFY/T+nY7/ EPefP59NVNr1+jnvril/xL+6ffomfqJe9sRKIfPfkcflte+YXQirlPz91kZqvtdm0TV8QQEi akosxRmJhlrMRcWJAFVCyGpZAgAA
Archived-At: <http://mailarchive.ietf.org/arch/msg/mmusic/VTyY6iONRgub0dUxQLPv9JHPFK8>
Cc: "mmusic@ietf.org" <mmusic@ietf.org>
Subject: Re: [MMUSIC] RID Open Issue 3: Escaping in Extension Parameters
X-BeenThere: mmusic@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Multiparty Multimedia Session Control Working Group <mmusic.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mmusic>, <mailto:mmusic-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/mmusic/>
List-Post: <mailto:mmusic@ietf.org>
List-Help: <mailto:mmusic-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mmusic>, <mailto:mmusic-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 02 Nov 2015 05:06:45 -0000

Den 2015-11-02 kl. 13:45, skrev Peter Thatcher:
> I like #3.  It's hard to know what escaping would make sense without
> knowing what we'll be escaping.  Let's cross that bridge when we come to
> it.

I was wondering if this really works for unknown attributes. It appears 
that it might, as long as you require comprehension of all attributes in 
an a=rid line. But, I have to note, that a peer that don't support 
escaping will wrongly delimit the line, and interpret what ever is after 
a ";" as a new rid attribute name? Thus, one parsers needs to be 
handling this as case of syntax invalid line, and skip it until you have 
upgraded and supports the escaping.

So, it appear to work, but it is dependent on that one maintain 
"required to understand" for all attributes. I find it ugly, but I will 
likely not be able to propose a solution in the next 3 weeks.

Cheers

Magnus
>
> On Sun, Nov 1, 2015 at 8:42 PM, Adam Roach <adam@nostrum.com
> <mailto:adam@nostrum.com>> wrote:
>
>     The parameters on an “a=rid:” line are extensible. The syntax for
>     these is:
>
>         rid-param-other = 1*(alpha-numeric / "-") [ "=" param-val ]
>         param-val = *( %x20-58 / %x60-7E ) ; Any printable character
>     except semicolon
>
>     If an extension has values that can contain semicolons, they need an
>     escaping mechanism. Note that this is not an issue for any currently
>     defined parameters, as they all take numeric values only.
>
>     1. Change extension syntax to only allow numeric values
>     2. Define a universal escaping mechanism for all extensions to use
>     3. Leave this problem for the first extension parameter – if any – to
>         define value in a way that might allow a semicolon
>
>     Thoughts?
>
>     /a mmusic-rid.pptx mmusic-rid.pptx
>
>     _______________________________________________
>     mmusic mailing list
>     mmusic@ietf.org <mailto:mmusic@ietf.org>
>     https://www.ietf.org/mailman/listinfo/mmusic
>
> -
>
>
> _______________________________________________
> mmusic mailing list
> mmusic@ietf.org
> https://www.ietf.org/mailman/listinfo/mmusic
>


-- 

Magnus Westerlund

----------------------------------------------------------------------
Services, Media and Network features, Ericsson Research EAB/TXM
----------------------------------------------------------------------
Ericsson AB                 | Phone  +46 10 7148287
Färögatan 6                 | Mobile +46 73 0949079
SE-164 80 Stockholm, Sweden | mailto: magnus.westerlund@ericsson.com
----------------------------------------------------------------------