Re: [sipcore] Content-Disposition questions

Christer Holmberg <christer.holmberg@ericsson.com> Tue, 10 March 2015 08:28 UTC

Return-Path: <christer.holmberg@ericsson.com>
X-Original-To: sipcore@ietfa.amsl.com
Delivered-To: sipcore@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D69AD1ACE0E for <sipcore@ietfa.amsl.com>; Tue, 10 Mar 2015 01:28:20 -0700 (PDT)
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 Y1_nUqt_0xnk for <sipcore@ietfa.amsl.com>; Tue, 10 Mar 2015 01:28:19 -0700 (PDT)
Received: from sesbmg22.ericsson.net (sesbmg22.ericsson.net [193.180.251.48]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B54781A90AE for <sipcore@ietf.org>; Tue, 10 Mar 2015 01:28:18 -0700 (PDT)
X-AuditID: c1b4fb30-f79c86d000000fc0-f0-54feab20cc3d
Received: from ESESSHC023.ericsson.se (Unknown_Domain [153.88.253.124]) by sesbmg22.ericsson.net (Symantec Mail Security) with SMTP id 85.49.04032.02BAEF45; Tue, 10 Mar 2015 09:28:17 +0100 (CET)
Received: from ESESSMB209.ericsson.se ([169.254.9.214]) by ESESSHC023.ericsson.se ([153.88.183.87]) with mapi id 14.03.0210.002; Tue, 10 Mar 2015 09:28:16 +0100
From: Christer Holmberg <christer.holmberg@ericsson.com>
To: Paul Kyzivat <pkyzivat@alum.mit.edu>, "sipcore@ietf.org" <sipcore@ietf.org>
Thread-Topic: [sipcore] Content-Disposition questions
Thread-Index: AdBaY9SoDDjiuJSCSNy+9rzo9dcbwwABFg+AACi2+gA=
Date: Tue, 10 Mar 2015 08:28:15 +0000
Message-ID: <7594FB04B1934943A5C02806D1A2204B1D733675@ESESSMB209.ericsson.se>
References: <7594FB04B1934943A5C02806D1A2204B1D73005D@ESESSMB209.ericsson.se> <54FDA613.8000800@alum.mit.edu>
In-Reply-To: <54FDA613.8000800@alum.mit.edu>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [153.88.183.154]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrALMWRmVeSWpSXmKPExsUyM+Jvja7i6n8hBj92MFms2HCA1eLrj01s Dkwef99/YPJYsuQnUwBTFJdNSmpOZllqkb5dAldGc+8H1oITYhULNj5lbmDcJ9jFyMkhIWAi sfXmDhYIW0ziwr31bF2MXBxCAkcYJQ4d3sAK4SxhlLjdeoGpi5GDg03AQqL7nzZIg4hAoMTV JROYQWxhoEHrPvxmASkRETCV2LcsDqLESuLRwudMIDaLgKrEpWXf2UFsXgFfiTlrp4HFhQTy JZ4t3skGYnMK6EjsWvcFbCQj0D3fT60Bq2EWEJe49WQ+E8SdAhJL9pxnhrBFJV4+/scKYStJ LLr9GapeR2LB7k9sELa2xLKFr5kh9gpKnJz5hGUCo+gsJGNnIWmZhaRlFpKWBYwsqxhFi1OL k3LTjYz0Uosyk4uL8/P08lJLNjECo+Tglt8GOxhfPnc8xCjAwajEw2sQ9y9EiDWxrLgy9xCj NAeLkjivnfGhECGB9MSS1OzU1ILUovii0pzU4kOMTBycUg2M7oH7Si/GhnrLCM924pPL0Ny5 YyZ/VP06kbNNc2s7F9cdvrr2RkLEc31Fth9LLEyazq54vmCLquuuuPi9047tlHMTOSR8o+V4 wbdZacLpRozhi5IWbGjo65RZv016b4rp3R/ave9MTfw3NOzYYJ8Xs/Gt+cPHstxmPxUX1LjU njM9XZTmYZCgxFKckWioxVxUnAgAob67pnMCAAA=
Archived-At: <http://mailarchive.ietf.org/arch/msg/sipcore/aOOFzUMdLnAlHBeJRTevfO5J_H4>
Subject: Re: [sipcore] Content-Disposition questions
X-BeenThere: sipcore@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: SIP Core Working Group <sipcore.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/sipcore>, <mailto:sipcore-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/sipcore/>
List-Post: <mailto:sipcore@ietf.org>
List-Help: <mailto:sipcore-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sipcore>, <mailto:sipcore-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 10 Mar 2015 08:28:21 -0000

Hi,

>> Section 20.11 of RFC 3261 says:
>>
>>          "For backward-compatibility, if the Content-Disposition 
>>          header field is missing, the server SHOULD assume bodies of Content-Type
>>          application/sdp are the disposition "session", while other content
>>          types are "render"."
>>
>> Section 20.11 also says:
>>
>>          "The handling parameter, handling-param, describes how the 
>>         UAS should react if it receives a message body whose content type or 
>>         disposition type it does not understand. The parameter has defined values 
>>         of "optional" and "required". If the handling parameter is missing, the
>>          value "required" SHOULD be assumed. The handling parameter is
>>          described in RFC 3204 [19].
>>
>> *QUESTION_1*: If the C-D header field is missing, and the default disposition 
>> type value ("render") is assumed, shall then the default handling value ("required") also be assumed?
>
> My personal opinion is that yes "required" is what it *should* be.
>
> It is less clear whether an implementation that treats it as "optional" can be accused of being non-compliant.

I don't think there should be a "should" - either there is a default value, or there isn't.

Then, if you want to allow different processing when "require" is used, that is a separate issue. But, that does not depend on whether "require" is indicated implicitly or explicitly.

For example, if you receive a body with C-D type "render" and "handling=required", are you still allowed to process the request even if you aren't able to handle the body?

>> RFC 3204, which RFC 3261 refers to, says that the default disposition type value for ISUP and QSIG bodies are "signal".
>>
>> *QUESTION_2*: If, for a specific message body, the "render" default type can be 
>> overwritten, shouldn't that be >> mentioned in 3261?
>
> Yes. It is quite evident that 3261 didn't give enough thought to Content-Disposition.
>
> You didn't mention RFC5621. It has a section on C-D and it updates 3261.
> But it doesn't totally address the issues you mention here.

I did have a look, but unless I missed something the focus seems to be mostly related to multipart bodies.

> IMO it would be reasonable to file an erratum on this. I don't know that it needs another 3261 update at this time.

My suggestion for such erratum would be:

1. Define that, if no C-D header field is present, "require" is the default handling value.
2. Define that, for specific message bodies, the default type value can be overwritten. BUT, in such cases, do we need to mandate "require" handling? Otherwise an entity that does not understand ISUP could treat it as "render", which is not the 
expected behaviour.

Regards,

Christer