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

"jose issue tracker" <trac+jose@trac.tools.ietf.org> Fri, 09 August 2013 08:07 UTC

Return-Path: <trac+jose@trac.tools.ietf.org>
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 1223C21F9E44 for <jose@ietfa.amsl.com>; Fri, 9 Aug 2013 01:07:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.599
X-Spam-Level:
X-Spam-Status: No, score=-102.599 tagged_above=-999 required=5 tests=[AWL=0.000, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 EYiNx9GauIYr for <jose@ietfa.amsl.com>; Fri, 9 Aug 2013 01:07:27 -0700 (PDT)
Received: from grenache.tools.ietf.org (grenache.tools.ietf.org [IPv6:2a01:3f0:1:2::30]) by ietfa.amsl.com (Postfix) with ESMTP id C11D121F9EFE for <jose@ietf.org>; Fri, 9 Aug 2013 01:07:24 -0700 (PDT)
Received: from localhost ([127.0.0.1]:34175 helo=grenache.tools.ietf.org ident=www-data) by grenache.tools.ietf.org with esmtp (Exim 4.80) (envelope-from <trac+jose@trac.tools.ietf.org>) id 1V7hio-0001b8-Vs; Fri, 09 Aug 2013 10:06:56 +0200
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: jose issue tracker <trac+jose@trac.tools.ietf.org>
X-Trac-Version: 0.12.3
Precedence: bulk
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12.3, by Edgewall Software
To: draft-ietf-jose-json-web-signature@tools.ietf.org, james@manger.com.au
X-Trac-Project: jose
Date: Fri, 09 Aug 2013 08:06:50 -0000
X-URL: http://tools.ietf.org/jose/
X-Trac-Ticket-URL: http://trac.tools.ietf.org/wg/jose/trac/ticket/50
Message-ID: <058.0d74b4153b360c16ccd3d64acacfc6f3@trac.tools.ietf.org>
X-Trac-Ticket-ID: 50
X-SA-Exim-Connect-IP: 127.0.0.1
X-SA-Exim-Rcpt-To: draft-ietf-jose-json-web-signature@tools.ietf.org, james@manger.com.au, jose@ietf.org
X-SA-Exim-Mail-From: trac+jose@trac.tools.ietf.org
X-SA-Exim-Scanned: No (on grenache.tools.ietf.org); SAEximRunCond expanded to false
Resent-To: mbj@microsoft.com, n-sakimura@nri.co.jp, ve7jtb@ve7jtb.com
Resent-Message-Id: <20130809080724.C11D121F9EFE@ietfa.amsl.com>
Resent-Date: Fri, 09 Aug 2013 01:07:24 -0700
Resent-From: trac+jose@trac.tools.ietf.org
Cc: jose@ietf.org
Subject: [jose] #50: "cty" (content type) should hold a media type
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.12
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: Fri, 09 Aug 2013 08:07:32 -0000

#50: "cty" (content type) should hold a media type

 The "cty" header parameter should hold a media type, just like the HTTP
 Content-Type header field after which it is named. Omitting a
 "application/" prefix to save 12 bytes in common cases is ok.

 The current text says "cty" is OPTIONAL (which is fine) and that it "MAY
 be used to declare the type". Either this MAY is a repeat of the OPTIONAL
 or it hints that "cty" MAY also be used for something else (which is
 surely wrong). Either way the MAY should go.

 Using a media type to declare the meaning of some bytes is well-
 understood. "cty" shouldn't need to do this "in an application-specific
 manner" as the current text says.

 The current options to use something other than a media type (such as a
 registered string or a value from a Collision Resistant Namespace) offer
 no benefits over sticking with media types -- only confusion and
 complexity. The current text says "cty" values are case sensitive, but I
 don't think media types are (at least not the major/minor type portions).

-- 
-------------------------+-------------------------------------------------
 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              |   Keywords:
 Severity:  -            |
-------------------------+-------------------------------------------------

Ticket URL: <http://trac.tools.ietf.org/wg/jose/trac/ticket/50>
jose <http://tools.ietf.org/jose/>