Re: [calsify] SCHEMA vs New Property

Doug Royer <douglasroyer@gmail.com> Wed, 10 July 2019 03:36 UTC

Return-Path: <douglasroyer@gmail.com>
X-Original-To: calsify@ietfa.amsl.com
Delivered-To: calsify@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 453981200B7 for <calsify@ietfa.amsl.com>; Tue, 9 Jul 2019 20:36:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.297
X-Spam-Level:
X-Spam-Status: No, score=0.297 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, PDS_NO_HELO_DNS=1.295, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 U-AYqutj2UrV for <calsify@ietfa.amsl.com>; Tue, 9 Jul 2019 20:36:23 -0700 (PDT)
Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) (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 E3DC612008B for <calsify@ietf.org>; Tue, 9 Jul 2019 20:36:22 -0700 (PDT)
Received: by mail-pl1-x641.google.com with SMTP id ay6so461055plb.9 for <calsify@ietf.org>; Tue, 09 Jul 2019 20:36:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:references:organization:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=wU73Vr60x0DDHFuHNmsIFXVC7YzBUXBf2+8VWUaD2pk=; b=IPJXjSEz4NrsiytLsExs5R6Xt3n1Us7qge5FV7PM7BpFcxQNlRbtCkEIA6veYwLwK7 Aefo4/2ls9R0z2UwP703rG7Tj55KkSHccijiViNcqeh1yhVtiO3SjOnsVcazr4YHbmFG bQOhn6nXaSbQVuQwLku0wOIrh9OyFYsdulLXRQzs3UNxIVB/Rpao5tWmmziqpNsCjU+R fFPuv/lpPLaS7aRtkuBQHZtWml5Hxl6TaoF5PfwL5lP9+53SGQDs44NSyKR53vemQalX 2xW66fZSluazYHijoblDulLWTEqnwtj3pYp5BlVXKj2b0LPlBJiV26PfktOFUsVEGCkP u+NQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:references:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=wU73Vr60x0DDHFuHNmsIFXVC7YzBUXBf2+8VWUaD2pk=; b=S1xvGeI9kym1NHKJWYNIK36JMXaKLXG8izQmn3zQo0Q/pAajrCwCvWxysi9I5Swp1Y braburoRQkCyEJAQiBVJZk+aetAS5u56mf46/Gr0A01d9ix3aLtvR73IpNkWcZZS0TIu bB0ALlbUmOUJucXW6StELy0T1LIHjPdNmwGRtXzwjZT5r4w2VFdO/MGGG48RI+3oSt1o UTzj2LtW+O/UsENfyjTdxCGIKpma3BNDSr12qaeZqWbF3xowKXkbRP5u/2DL3fC0vugw lR902k1/KOpiEWkmSYp5DDjn3AhdIiQKDWdMQWrF3sT+63cpiUlBVOvhu7OKlTB/nu1z s4xg==
X-Gm-Message-State: APjAAAUF5zUZCgx32xZ80XsHDnPU63WcxUgbQD24Y0Kp+kWwxPbCz7q7 jq7PAhjBBiXAbnrtqrJ42NXPgqoR7S03
X-Google-Smtp-Source: APXvYqwieIz5KxdvqlrEx5ZK8VWfHM1H+DJtvsBXEFNNIVfTBWXGq0rdq4VPqGRD9tDrk1PALKZKaA==
X-Received: by 2002:a17:902:8547:: with SMTP id d7mr36971819plo.171.1562729782032; Tue, 09 Jul 2019 20:36:22 -0700 (PDT)
Received: from [192.168.1.7] ([174.27.175.146]) by smtp.googlemail.com with ESMTPSA id d14sm508534pfo.154.2019.07.09.20.36.21 for <calsify@ietf.org> (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jul 2019 20:36:21 -0700 (PDT)
From: Doug Royer <douglasroyer@gmail.com>
X-Google-Original-From: Doug Royer <DouglasRoyer@gmail.com>
To: calsify@ietf.org
References: <CAOxZLy0VntDQYCrdvnpDcef3rPqXibqso36OwEjbFn4kdUSPWQ@mail.gmail.com> <482a9dba-6d92-3b78-a9be-d90682f4d4f2@gmail.com> <CAOxZLy3nGvKcs+D2e3MaUGxy-wsgcX1_a1Znv+9geT2E9HjRSw@mail.gmail.com> <f8457cda-1e96-03e3-f37e-d550c10cfb7d@gmail.com> <05079bf2-6494-4c6b-00dc-1a9ecd6beda0@gmail.com> <968f0c5a-c198-19eb-8e56-7be6e2b6820a@gmail.com>
Organization: http://SoftwareAndServices.NET
Message-ID: <a27374ff-5eef-7466-d993-76c504d5e1e6@gmail.com>
Date: Tue, 09 Jul 2019 21:36:20 -0600
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1
MIME-Version: 1.0
In-Reply-To: <968f0c5a-c198-19eb-8e56-7be6e2b6820a@gmail.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/calsify/VFMnHbTwwKWqOkLrLEHE3Vk_RuQ>
Subject: Re: [calsify] SCHEMA vs New Property
X-BeenThere: calsify@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <calsify.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/calsify>, <mailto:calsify-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/calsify/>
List-Post: <mailto:calsify@ietf.org>
List-Help: <mailto:calsify-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/calsify>, <mailto:calsify-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Jul 2019 03:36:24 -0000

On 7/8/19 10:04 PM, Michael Douglass [Masked] wrote:
> 
>
> 
> On 7/8/19 23:44, Doug Royer wrote:
>> On 7/8/19 8:25 PM, Michael Douglass wrote:
>>> As Ken said earlier this is a perfect use for the new Structured-Data property defined in the eventpub-extensions draft
>
> I see no requirement for publishing anything about the schema other than to reserve it. The only requirement for publishing is if the schema definer wishes 3rd parties to make use of it. It doesn't even have to be defined and published with the ietf. It's payload

Yes, your proposing a free for all data object. Do whatever you want. The opposite of a standard object.

>> It looks to me as if STRUCTURED-DATA is just a way of passing opaque data that will contain proprietary information. This completely reverses the idea of a standard calendar object.
>>
>> If your going to document a new data-set. Document it in iCalendar format. Not in unlimited, unrestricted and random formats.
> So if somebody has XML or JSON data they wish to transport - already defined by a schema - they are required to recast that as iCalendar? I think not. Without STRUCTURED-DATA they'll just push it across as an x-prop or attachment then it's even more opaque.

They both are opaque data, except you saying it is different.

X-PROP and STRUCTURED-DATA are the same thing. Random non standard blobs of data to implementations that do not know what they mean. The ATTACH base-64 encoding/decoding value allows for any kind of data.

    X-MY-PROP;x-myparam-data-set-3:base-64-text

They both contain the same thing.

That was the debates with X-PROP. A standard way to parse random blobs of propitiatory data. It makes you want to standardize the data sets to use it across vendors.

And STRUCTURED-DATA is a name that implies structure. It is not. It could be unstructured data, blobs of weather data, blobs of random disk errors. It has no added value over X-PROP or ATTACH. The data could be base-64 encoded or not, it is just text.

Example:

   ATTACH;FMTTYPE=text/html;...:base-64 encoded html page, or URL or CID to that page

vs

   STRUCTURED-DATA:SCHEMA=http://www.w3.org/TR/html4;...:base-64 encoded html page, or URL or CID to that page, or text that may have to be base64 encoded anyway because of its content.

vs

  STRUCTURED-DATA:SCHEMA=http://MyPrepratorySchema;...:base-64 encoded html page, or URL or CID to that page, or text that may have to be base64 encoded anyway because of its content.

Use ATTACH with a CID value, pointing to MIME object and set the mime-type value.

Set the ATTACH fmttypeparam and CID part MIME-TYPE to text/xml or application/json (or whatever) and include anything you can transport.

Or set the ATTACH value to an external URL with ATTACH fmttypeparm set to the correct data type.

If you need to, define and register a new mime-type for your data (schema). Or use an x-mime-type with ATTACH with your preparatory data.

Did I miss something that STRUCTURED-DATA can do, that X-PROP or ATTACH can not do?
Creating it simply because you do not want to base64 encode text is a heavy solution when you can already ATTACH the value in binary, text, or whatever by using a CID URI or a URL URI all of which can contain plain text.

iCalendar is a MIME object.

-- 


Doug Royer - (http://DougRoyer.US)
Douglas.Royer@gmail.com
714-989-6135