Re: [jose] #50: "cty" (content type) should hold a media type

Edmund Jay <ejay@mgi1.com> Mon, 16 September 2013 21:12 UTC

Return-Path: <edmundjay@sbcglobal.net>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0B59F11E8145 for <jose@ietfa.amsl.com>; Mon, 16 Sep 2013 14:12:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level:
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EqDoIuf4OUHc for <jose@ietfa.amsl.com>; Mon, 16 Sep 2013 14:12:41 -0700 (PDT)
Received: from nm18-vm10.access.bullet.mail.bf1.yahoo.com (nm18-vm10.access.bullet.mail.bf1.yahoo.com [216.109.115.89]) by ietfa.amsl.com (Postfix) with ESMTP id 0951A11E8112 for <jose@ietf.org>; Mon, 16 Sep 2013 14:12:40 -0700 (PDT)
Received: from [66.196.81.160] by nm18.access.bullet.mail.bf1.yahoo.com with NNFMP; 16 Sep 2013 21:12:40 -0000
Received: from [66.196.81.152] by tm6.access.bullet.mail.bf1.yahoo.com with NNFMP; 16 Sep 2013 21:12:39 -0000
Received: from [127.0.0.1] by omp1028.access.mail.bf1.yahoo.com with NNFMP; 16 Sep 2013 21:12:39 -0000
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 820293.56661.bm@omp1028.access.mail.bf1.yahoo.com
Received: (qmail 84456 invoked by uid 60001); 16 Sep 2013 21:12:39 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1379365959; bh=U78g6QEXANPIMsuG+s3269HxieKsIA6qpYnHp3W9z10=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-RocketYMMF:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=h4lMWnYnquRx405kOdSTFWzZ752O7luBxwC0sxwiZLp0URiR0xWsL7aYPDBQh79hfLJmQVwBo8MnFTKpqjyWyL4b2V8ZeMOt1Juk01CLELXDGw4K9c1fabTA+kNV58oel4Lf1wtP7eS1c5FiMTcpD7Ipu5XgP72rcmY+SwV+mKM=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=sbcglobal.net; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-RocketYMMF:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=gepJTP57WMhNpll3uvPuHDLQBzTlny6hCFuVP6D7i+MT71aAGQJz8hZdOdD+ak08AkSJqyKPCpBGa5PDjPUDDi7uBBs1mduOfMgsuWsw5qTt4v+H3MUDrSs/rx/XIHTbTjyo6Lx8QtHD+tzyn9VpcsWNrQQwtkv+8OD214Wgm+M=;
X-YMail-OSG: yJFS3zIVM1lgbcGmQySTsiCvd0A4LxcAQH4t973EdCnwi95 4JbrWxJMNe9865jEwdU8fT.6B_HREBcGh5WN6XynrbEodDB__fnAr4gTwFrd WLQIgQxix1L3B0XPI_LvG8PPwUZvNCWWoRM_p6wjNClyljiRspF6spLCu020 UbPiDxaCgT.gjj0AwJ_iBq6UzUiMwzvTwQJxQNvfIPzS2zfyOH3eBaCQbXD0 RBu_SsK8YlLJq_9RQjsThIrJUVuz_N4sorqlThdCpVCBJRWTvG5GQBJFvB1e 5.eUZ.k871C0l1ie8FvCKtCMJAz3TU7cRTCA_t8uim07QxvJFmwcaHdWrpRR 1zdN6q4xL9ICvLC583YcJ.VXQ8gwFRw.V1xQ_CVfBzFLyGd8_W82EDgl49cg lBO19CAEuDrUnPzwbmIeExXDOD0Em5Oy8J0Jp757y659o0sz1Hb9dssjhVTC isBF8ty11X9bLjHKuVo7NFKwptoG4M54qI.dj5gyG26nmPo3AXwZIrUPwcUu XMYN3Gb2H5sK7pEOBNZ9e65VbWiZoB6.gAtYyC5T_cAmqBVa6qVkq3dV7MmY qTCm9jWzOUYs6eIyFJ5FkEY8cPhnmr_4p8tTvitgqEmJM2lz2JA--
Received: from [70.36.254.42] by web184405.mail.bf1.yahoo.com via HTTP; Mon, 16 Sep 2013 14:12:38 PDT
X-Rocket-MIMEInfo: 002.001, KyAxIGZvciBrZWVwaW5nIHRoZSBjb21wYWN0IGZvcm0gc2luY2UgaXQgZ2l2ZXMgYSBjaG9pY2Ugd2hlcmUgY29tcGFjdG5lc3MgaXMgbmVlZGVkIGFuZCBkb2VzIG5vdCBwcmVjbHVkZSB1c2luZyBtZWRpYSB0eXBlcy4KCgoKCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCiBGcm9tOiBKb2huIEJyYWRsZXkgPHZlN2p0YkB2ZTdqdGIuY29tPgpUbzogQXhlbC5OZW5ua2VyQHRlbGVrb20uZGUgCkNjOiBtaWNoYWVsLmpvbmVzQG1pY3Jvc29mdC5jb207IHRyYWMram9zZUB0cmFjLnRvb2xzLmlldGYBMAEBAQE-
X-RocketYMMF: edmundjay@sbcglobal.net
X-Mailer: YahooMailWebService/0.8.157.561
References: <058.0d74b4153b360c16ccd3d64acacfc6f3@trac.tools.ietf.org> <073.b3ecbc54a761c68cd123ac96652e0240@trac.tools.ietf.org> <CE8995AB5D178F44A2154F5C9A97CAF402581D803FB4@HE111541.emea1.cds.t-internal.com> <86DCD696-1420-426E-8C05-6C23D19083AD@ve7jtb.com>
Message-ID: <1379365958.81874.YahooMailNeo@web184405.mail.bf1.yahoo.com>
Date: Mon, 16 Sep 2013 14:12:38 -0700
From: Edmund Jay <ejay@mgi1.com>
To: John Bradley <ve7jtb@ve7jtb.com>, "Axel.Nennker@telekom.de" <Axel.Nennker@telekom.de>
In-Reply-To: <86DCD696-1420-426E-8C05-6C23D19083AD@ve7jtb.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="-1412092350-1577087584-1379365958=:81874"
Cc: "michael.jones@microsoft.com" <michael.jones@microsoft.com>, "trac+jose@trac.tools.ietf.org" <trac+jose@trac.tools.ietf.org>, "jose@ietf.org" <jose@ietf.org>, "draft-ietf-jose-json-web-signature@tools.ietf.org" <draft-ietf-jose-json-web-signature@tools.ietf.org>
Subject: Re: [jose] #50: "cty" (content type) should hold a media type
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: Edmund Jay <ejay@mgi1.com>
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Sep 2013 21:12:47 -0000

+ 1 for keeping the compact form since it gives a choice where compactness is needed and does not preclude using media types.




________________________________
 From: John Bradley <ve7jtb@ve7jtb.com>
To: Axel.Nennker@telekom.de 
Cc: michael.jones@microsoft.com; trac+jose@trac.tools.ietf.org; jose@ietf.org; draft-ietf-jose-json-web-signature@tools.ietf.org 
Sent: Monday, September 16, 2013 1:51 PM
Subject: Re: [jose] #50: "cty" (content type) should hold a media type
 

I think mime types should be compared as octets rater than introduce folding rules.  So it would be good to say that when they are used they MUST be lowercase as is the convention.

I think keeping the current short names is fine, and not likely to cause confusion.

John B.
On 2013-09-16, at 1:41 PM, <Axel.Nennker@telekom.de> wrote:

> +1 for keeping the compact form for cty
> 
> I would even stay with case sensivity for mime-types because in (all?) other cases in JOSE we are comparing octets as-is to avoid complexity.
> [Canonicalization is evil]
> 
> -axel
> 
> -----Original Message-----
> From: jose-bounces@ietf.org [mailto:jose-bounces@ietf.org] On Behalf Of jose issue tracker
> Sent: Friday, September 13, 2013 8:12 PM
> To: draft-ietf-jose-json-web-signature@tools.ietf.org; michael.jones@microsoft.com
> Cc: jose@ietf.org
> Subject: Re: [jose] #50: "cty" (content type) should hold a media type
> 
> #50: "cty" (content type) should hold a media type
> 
> 
> Comment (by michael.jones@microsoft.com):
> 
> Originally "typ" and "cty" values were in their own IANA type space that  was independent of MIME types.  Quite some time ago (I believe based on  comments from Jim), the working group decided to add a field in the types  registry allowing the correspondence between the short-by-design JOSE type  names and MIME types to be registered.  At the time, we also decided to  allow the use of MIME types in those fields, which is fine in cases where  compactness isn't a goal.
> 
> However, for many cases, compactness is a goal, and the current solution  is designed with that in mind, and is already working fine.  I don't see a  compelling reason to change it at this point.  It's already used, for  instance, in Section 6 of JWK, for indicating that a JWK or JWK Set are  the encrypted content.  It's used by JWT for saying that a JWT is the  encrypted content.  Etc.
> 
> To address your concerns about the "MAY be used" language, I propose that  "MAY be used" be changed to "is used".  You're right that the "OPTIONAL"
> phrase already covers the "MAY" intent.
> 
> To address your concerns about MIME types being case insensitive, I  propose that we add this text after saying that MIME types values may be
> used: "When MIME Media Types values are used, it is RECOMMENDED that they  use the exact character case used in the registry, since this field is  case sensitive, whereas MIME values are case insensitive."
> 
> -- 
> -------------------------+----------------------------------------------
> -------------------------+---
> Reporter:               |       Owner:  draft-ietf-jose-json-web-
>  james@manger.com.au    |  signature@tools.ietf.org
>     Type:  defect       |      Status:  new
> Priority:  major        |   Milestone:
> Component:  json-web-    |     Version:
>  signature              |  Resolution:
> Severity:  -            |
> Keywords:               |
> -------------------------+----------------------------------------------
> -------------------------+---
> 
> Ticket URL: <http://trac.tools.ietf.org/wg/jose/trac/ticket/50#comment:1>
> jose <http://tools.ietf.org/jose/>
> 
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose


_______________________________________________
jose mailing list
jose@ietf.org
https://www.ietf.org/mailman/listinfo/jose