Re: [EXTERNAL] Re: [irsg] how to upload minutes in markdown format?

Robert Sparks <rjsparks@nostrum.com> Tue, 03 August 2021 02:36 UTC

Return-Path: <rjsparks@nostrum.com>
X-Original-To: wgchairs@ietfa.amsl.com
Delivered-To: wgchairs@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4EC1F3A0B93; Mon, 2 Aug 2021 19:36:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.28
X-Spam-Level:
X-Spam-Status: No, score=-1.28 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, HTML_MESSAGE=0.001, KHOP_HELO_FCRDNS=0.399, NICE_REPLY_A=-0.001, T_SPF_HELO_PERMERROR=0.01, T_SPF_PERMERROR=0.01, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=nostrum.com
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 g9wcc22LcVWs; Mon, 2 Aug 2021 19:35:59 -0700 (PDT)
Received: from nostrum.com (raven-v6.nostrum.com [IPv6:2001:470:d:1130::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C8E4A3A0B7A; Mon, 2 Aug 2021 19:35:58 -0700 (PDT)
Received: from unformal.localdomain ([47.186.34.206]) (authenticated bits=0) by nostrum.com (8.16.1/8.16.1) with ESMTPSA id 1732ZtTo050397 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 2 Aug 2021 21:35:56 -0500 (CDT) (envelope-from rjsparks@nostrum.com)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nostrum.com; s=default; t=1627958157; bh=GtUqnqcib9d1LhIGKBlIk/mEcWlDA79eCt4HO+keh+o=; h=To:Cc:References:From:Subject:Date:In-Reply-To; b=sVwBuYL4ibVaqXuuJrJCoUOrYDUjDo8/XpGvkMZcvsc1jfv89rlWN5xm9yXU8go16 legMjFI81k5Mxki/iY7j9Dm7sc+k4lUhUFN4ZbPxwUn8gxR28DLUTGBTNkghM0tfUx kngaTfvyGPTUJX32G8yBjz7uqv3CQDqd6J/jCe9Y=
X-Authentication-Warning: raven.nostrum.com: Host [47.186.34.206] claimed to be unformal.localdomain
To: "Deen, Glenn (NBCUniversal)" <Glenn.Deen@nbcuni.com>, Jay Daley <jay@ietf.org>
Cc: Working Group Chairs <wgchairs@ietf.org>
References: <8129fb38-9dd4-426b-679e-40eaf0afaa67@alum.mit.edu> <91951106-6433-4BE0-A952-6FF673090B3E@tzi.org> <9645fdb7-2e4f-7593-12d0-71ed85764903@nostrum.com> <FFC28F29-C63F-4FEC-9F1E-15CD98325817@tzi.org> <9e53eb9a-8284-87a8-b7fa-bb7cd8dd3be5@nostrum.com> <C4AF4982-78CC-457F-8420-FF335BBE0EF0@tzi.org> <dafc084c-759b-379d-aa5a-1d9427297a76@alum.mit.edu> <0F236848-B848-483F-9405-8D75BDF6E95E@tzi.org> <39ca1a6e-dcb6-f7d2-f136-30ba2efbcfee@alum.mit.edu> <84f4f73a-fcd5-5efd-8d69-10992e56260b@nostrum.com> <0BDF970A-CF3A-4D00-87C9-ACB782951C32@ietf.org> <015FCE56-1380-47DF-B2DB-5191DEE0EB80@nbcuni.com>
From: Robert Sparks <rjsparks@nostrum.com>
Subject: Re: [EXTERNAL] Re: [irsg] how to upload minutes in markdown format?
Message-ID: <0e870443-73f3-ea85-24ce-b94ee3604bcb@nostrum.com>
Date: Mon, 02 Aug 2021 21:35:50 -0500
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.12.0
MIME-Version: 1.0
In-Reply-To: <015FCE56-1380-47DF-B2DB-5191DEE0EB80@nbcuni.com>
Content-Type: multipart/alternative; boundary="------------980053D6514BB2337735A5ED"
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/wgchairs/zkMNSEYOBFbla-ze4Gd3VFhNG5Q>
X-BeenThere: wgchairs@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Working Group Chairs <wgchairs.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/wgchairs>, <mailto:wgchairs-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/wgchairs/>
List-Post: <mailto:wgchairs@ietf.org>
List-Help: <mailto:wgchairs-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/wgchairs>, <mailto:wgchairs-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 03 Aug 2021 02:36:12 -0000

The trouble is encountered when someone has not installed Xcode or some 
other app that registers the markdown UTI 
(https://en.wikipedia.org/wiki/Uniform_Type_Identifier)

Without that, os/x believes the type is simply "Document", and browsers 
use application/octet-stream when uploading.

 From someone on such a system that ran a helpful test:

> $ mdls -name kMDItemContentType -name kMDItemContentTypeTree -name 
> kMDItemKind ./Untitled.md
> kMDItemContentType     = "dyn.ah62d4rv4ge8043a"
> kMDItemContentTypeTree = (
>     "public.item",
>     "dyn.ah62d4rv4ge8043a",
>     "public.data"
> )
> kMDItemKind            = "Document" 
vs what happens when something's registered .md:

> % mdls -name kMDItemContentType -name kMDItemContentTypeTree -name 
> kMDItemKind ./whatever.md
> kMDItemContentType     = "net.daringfireball.markdown"
> kMDItemContentTypeTree = (
>     "public.item",
>     "public.text",
>     "public.data",
>     "public.content",
>     "net.daringfireball.markdown",
>     "public.plain-text"
> ) 

On 8/2/21 9:27 PM, Deen, Glenn (NBCUniversal) wrote:
>
> On 8/2/21, 1:54 PM, "WGChairs on behalf of Jay Daley" 
> <wgchairs-bounces@ietf.org <mailto:wgchairs-bounces@ietf.org> on 
> behalf of jay@ietf.org <mailto:jay@ietf.org>> wrote:
>
>
>
>     On 3/08/2021, at 7:49 AM, Robert Sparks <rjsparks@nostrum.com
>     <mailto:rjsparks@nostrum.com>> wrote:
>
>     Dropping the list for a moment.
>
>
>
>         Even so, when the extension is set to .md Finder Get Info
>         (CMD-I) reports the Kind:Document, whereas it reports .txt as
>         Kind:text.
>         (AFAICT MacOS doesn't report literal mime type. Do browsers
>         derive mime type from Kind?)
>
>
>     Using firefox's developer tools -> Networking view into what's
>     sent, my system uploads as follows:
>
>
>         -----------------------------21552262633498723647489224942
>         Content-Disposition: form-data; name="file"; filename="stir.md"
>         Content-Type: text/markdown
>
>     Finder reports the given file as Kind: Markdown Text (though if I
>     associate it with other editors, it may say Markdown Document, but
>     the Content-Type the browsers choose to use later remains the same.
>
>     Do you have XCode installed? If so, does what finder shows you
>     change away from simply Type: Document to Type: Markdown (mumble)
>     if you tell it to open all files of that type with XCode?
>
> Just tested this.  If XCode is set at the default for .md files then 
> MacOS reports them as "Kind: Markdown Document".  If I set 
> SublimeText, Atom or Bear as the default then it is "Kind: Markdown Text".
>
> Interesting,  XCode is the default markdown editor on my Mac, and 
> uploads work for me.
>
> -glenn
>