RE: [Sip] SIPit21: BNF future-proofing problem?

"T Satyanarayana-A12694" <satyanarayana.t@motorola.com> Mon, 03 December 2007 20:31 UTC

Return-path: <sip-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1IzHwg-0003L0-I8; Mon, 03 Dec 2007 15:31:14 -0500
Received: from sip by megatron.ietf.org with local (Exim 4.43) id 1Iv4rs-0001zs-5F for sip-confirm+ok@megatron.ietf.org; Thu, 22 Nov 2007 00:44:52 -0500
Received: from sip by megatron.ietf.org with local (Exim 4.43) id 1Iv4rr-0001zj-S5 for sip@ietf.org; Thu, 22 Nov 2007 00:44:51 -0500
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1Iv4qg-0006c6-7k for sip@ietf.org; Thu, 22 Nov 2007 00:43:38 -0500
Received: from mail153.messagelabs.com ([216.82.253.51]) by chiedprmail1.ietf.org with smtp (Exim 4.43) id 1Iv4qf-0006An-0X for sip@ietf.org; Thu, 22 Nov 2007 00:43:38 -0500
X-VirusChecked: Checked
X-Env-Sender: satyanarayana.t@motorola.com
X-Msg-Ref: server-5.tower-153.messagelabs.com!1195710215!10029587!1
X-StarScan-Version: 5.5.12.14.2; banners=-,-,-
X-Originating-IP: [144.189.100.102]
Received: (qmail 31631 invoked from network); 22 Nov 2007 05:43:35 -0000
Received: from motgate4.mot.com (HELO motgate4.mot.com) (144.189.100.102) by server-5.tower-153.messagelabs.com with SMTP; 22 Nov 2007 05:43:35 -0000
Received: from az33exr03.mot.com (az33exr03.mot.com [10.64.251.233]) by motgate4.mot.com (8.12.11/Motorola) with ESMTP id lAM5hZuU001944 for <sip@ietf.org>; Wed, 21 Nov 2007 22:43:35 -0700 (MST)
Received: from az10vts02.mot.com (az10vts02.mot.com [10.64.251.243]) by az33exr03.mot.com (8.13.1/Vontu) with SMTP id lAM5hYqd006674 for <sip@ietf.org>; Wed, 21 Nov 2007 23:43:34 -0600 (CST)
Received: from ZMY16EXM67.ds.mot.com (zmy16exm67.ap.mot.com [10.179.4.27]) by az33exr03.mot.com (8.13.1/8.13.0) with ESMTP id lAM5hW9Q006660 for <sip@ietf.org>; Wed, 21 Nov 2007 23:43:33 -0600 (CST)
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
Subject: RE: [Sip] SIPit21: BNF future-proofing problem?
Date: Thu, 22 Nov 2007 13:43:21 +0800
Message-ID: <3100473D52017B48B9068E079BE2A6E6029AC62C@ZMY16EXM67.ds.mot.com>
In-Reply-To: <CA9998CD4A020D418654FCDEF4E707DFEE0890@esealmw113.eemea.ericsson.se>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: [Sip] SIPit21: BNF future-proofing problem?
Thread-Index: AcgsSaCFMdxh9wfFTeKGF2CITLPJSAAAZ63wAAashzgAGJzNMA==
References: <316F9CB1-959B-4CB9-AED5-DCB46AC2741A@nostrum.com><66cd252f0711202053x70902fe7nabea5bd31a6cfa74@mail.gmail.com><66cd252f0711202129x7967a4f3p7d29ffb3697e6cd6@mail.gmail.com><CA9998CD4A020D418654FCDEF4E707DF03335DD8@esealmw113.eemea.ericsson.se><6C813C91-7A57-42F8-A22D-774F5A716EBF@nostrum.com><CA9998CD4A020D418654FCDEF4E707DF03370B68@esealmw113.eemea.ericsson.se> <CA9998CD4A020D418654FCDEF4E707DFEE0890@esealmw113.eemea.ericsson.se>
From: T Satyanarayana-A12694 <satyanarayana.t@motorola.com>
To: Christer Holmberg <christer.holmberg@ericsson.com>, Robert Sparks <rjsparks@nostrum.com>
X-CFilter-Loop: Reflected
X-Spam-Score: 0.0 (/)
X-Scan-Signature: a492040269d440726bfd84680622cee7
X-TMDA-Confirmed: Thu, 22 Nov 2007 00:44:51 -0500
X-Mailman-Approved-At: Mon, 03 Dec 2007 15:31:13 -0500
Cc: sip List <sip@ietf.org>
X-BeenThere: sip@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Session Initiation Protocol <sip.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/sip>, <mailto:sip-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:sip@ietf.org>
List-Help: <mailto:sip-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/sip>, <mailto:sip-request@ietf.org?subject=subscribe>
Errors-To: sip-bounces@ietf.org

This would mean a large change to existing parsers and formatters. And
also, the "escaping" and "unescaping" overheads.

Changing the header-value BNF may be more acceptable?

Regards
Satya T

-----Original Message-----
From: Christer Holmberg [mailto:christer.holmberg@ericsson.com] 
Sent: Wednesday, November 21, 2007 11:13 PM
To: Christer Holmberg; Robert Sparks
Cc: sip List
Subject: RE: [Sip] SIPit21: BNF future-proofing problem?

Hi,
 
Another alternative would be to define an escaping mechanism for
quoted-strings in SIP messages, and require all characters not allowed
by the header-value ABNF to be escaped.
 
Regards,
 
Christer 

________________________________

From: Christer Holmberg [mailto:christer.holmberg@ericsson.com]
Sent: Wed 21/11/2007 15:33
To: Robert Sparks
Cc: sip List
Subject: RE: [Sip] SIPit21: BNF future-proofing problem?




Hi,

>So to restate the problem that was reported:
>
>Right now, extension-header does not allow a new header that contains a

>quoted-string.
>
>We have defined extensions (and are likely to define new
>ones) that use quoted-string (anything that uses name-addr for 
>instance).
>
>This inconsistency has caused interoperability problems in real 
>implementations.
>
>My original note was to suggest that we change extension-header to 
>actually allow the headers we're going to define.
>
>Christer's response could be read as a proposal to change
>quoted- string to achieve the same goal.

Yes.

Unless someone can show a use-case where the x00-x20 characters would be
needed, for backward compability reasons I think it's better to restrict
quoted-string than to extend extension-header.

Regards,

Christer




> > Hi,
> >
> > I am still a little unclear what Robert is proposing, but is there 
> > really a need to be able to use characters between x00 and
> x20 in SIP
> > messages? Characters between x21 and x7F, and between x80
> and xBF, are
> > ok since they are covered by TEXT-UTF8char and UTF8-CONT.
> >
> > Regards,
> >
> > Christer
> >
> >
> > ________________________________
> >
> >     From: Hisham Khartabil [mailto:hisham.khartabil@gmail.com]
> >     Sent: 21. marraskuuta 2007 7:30
> >     To: Robert Sparks
> >     Cc: sip List
> >     Subject: Re: [Sip] SIPit21: BNF future-proofing problem?
> >    
> >    
> >     I think I did misread Robert's original email. I thought header 
> > values having quoted strings are currently not allowed and Robert 
> > wanted to change RFC2822. Now I realise that you can have
> header field
> > values with quoted string. Therefore I support the correction that 
> > Robert is proposing.
> >    
> >     Hisham
> >    
> >    
> >     On 21/11/2007, Hisham Khartabil <hisham.khartabil@gmail.com>
> > wrote:
> >
> >             This is a big change if we do adopt it. It will
> cause a lot of
> > problem to parsers that handle extenion headers today and is not 
> > backwards compatible. Why isn't the extension header as is defined 
> > today not sufficient?
> >                            
> >             Hisham
> >            
> >            
> >                                             On 20/11/2007, Robert 
> > Sparks <rjsparks@nostrum.com > wrote:
> >
> >                     The BNF in 3261 says the following:
> >                    
> >                     extension-header  =  header-name HCOLON
> header-value
> >                     header-value      =  *(TEXT-UTF8char / UTF8-CONT
> > / LWS)
> >                    
> >                     This is intended to be the catch-all
> field for all future
> > extensions
> >                     - older parsers working against this
> BNF shouldn't barf
> >                     when we introduce a new header field.
> >                    
> >                     Now, we may have new fields in the
> future that look like:
> >                    
> >                     NewHeader = new-header-name HCOLON quoted-string
> >                    
> >                     And down inside quoted-string, we get:
> >                    
> >                           quoted-string  =  SWS DQUOTE
> *(qdtext / quoted-pair ) DQUOTE
> >                           qdtext         =  LWS / %x21 / %x23-5B /
> > %x5D-7E
> >                                             / UTF8-NONASCII
> >                           quoted-pair  =  "\" (%x00-09 / %x0B-0C
> >                                            / %x0E-7F)
> >                    
> >                     So, for instance, we could have inside
> a quoted string the 2 byte
> >                     sequence \ NULL
> >                    
> >                     This does not parse against
> header-value above...
> >                    
> >                     Is this a problem? Some of the SIPit21
> participants argued that it
> > is.
> >                    
> >                     The projects I've been involved in
> don't parse unknown headers and
> >                     the stacks will just hand up an
> unparsed bucket of bits (the only
> > rules
> >                     used are those necessary to identify
> the next header-field
> > starting).
> >                    
> >                     Would it be worth the effort to make
> the BNF reflect that rather
> > than
> >                     continuing with the incongruity that we
> currently specify?
> >                    
> >                     RjS
> >                    
> >                    
> >                     _______________________________________________
> >                     Sip mailing list 
> > https://www1.ietf.org/mailman/listinfo/sip
> > <https://www1.ietf.org/mailman/listinfo/sip>
> >                     This list is for NEW development of the
> core SIP Protocol
> >                     Use sip-implementors@cs.columbia.edu
> for questions on current sip
> >                     Use sipping@ietf.org for new
> developments on the application of sip
> >                    
> >
> >
> >            
>
>


_______________________________________________
Sip mailing list  https://www1.ietf.org/mailman/listinfo/sip
This list is for NEW development of the core SIP Protocol Use
sip-implementors@cs.columbia.edu for questions on current sip Use
sipping@ietf.org for new developments on the application of sip




_______________________________________________
Sip mailing list  https://www1.ietf.org/mailman/listinfo/sip
This list is for NEW development of the core SIP Protocol Use
sip-implementors@cs.columbia.edu for questions on current sip Use
sipping@ietf.org for new developments on the application of sip



_______________________________________________
Sip mailing list  https://www1.ietf.org/mailman/listinfo/sip
This list is for NEW development of the core SIP Protocol
Use sip-implementors@cs.columbia.edu for questions on current sip
Use sipping@ietf.org for new developments on the application of sip