Re: [IPP] Posted 1.1 release candidate tools

Michael Sweet via ipp <ipp@pwg.org> Thu, 21 May 2020 15:18 UTC

Return-Path: <ipp-bounces@pwg.org>
X-Original-To: ietfarch-ipp-archive@ietfa.amsl.com
Delivered-To: ietfarch-ipp-archive@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 883CD3A0D14 for <ietfarch-ipp-archive@ietfa.amsl.com>; Thu, 21 May 2020 08:18:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.899
X-Spam-Level:
X-Spam-Status: No, score=-2.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 3HN1Sr1O3yAm for <ietfarch-ipp-archive@ietfa.amsl.com>; Thu, 21 May 2020 08:18:33 -0700 (PDT)
Received: from mail.pwg.org (mail.pwg.org [50.116.7.199]) by ietfa.amsl.com (Postfix) with ESMTP id 6B9BB3A0D08 for <ipp-archive2@ietf.org>; Thu, 21 May 2020 08:18:33 -0700 (PDT)
Received: by mail.pwg.org (Postfix, from userid 1002) id 595189303; Thu, 21 May 2020 15:18:28 +0000 (UTC)
Received: from mail.pwg.org (localhost [IPv6:::1]) by mail.pwg.org (Postfix) with ESMTP id 7C1AD2491; Thu, 21 May 2020 15:18:25 +0000 (UTC)
X-Original-To: ipp@pwg.org
Delivered-To: ipp@pwg.org
Received: by mail.pwg.org (Postfix, from userid 1002) id EFAA03A8E; Thu, 21 May 2020 15:18:24 +0000 (UTC)
Received: from mail.msweet.org (mail.msweet.org [173.255.209.91]) by mail.pwg.org (Postfix) with ESMTP id 9B66F477; Thu, 21 May 2020 15:18:24 +0000 (UTC)
Received: from imacpro.lan (host-148-170-144-200.public.eastlink.ca [148.170.144.200]) by mail.msweet.org (Postfix) with ESMTPSA id 04AF382117; Thu, 21 May 2020 15:18:23 +0000 (UTC)
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\))
In-Reply-To: <E2FAD2DC-E3C9-45E9-A303-CC862E306FF0@hp.com>
Date: Thu, 21 May 2020 11:18:22 -0400
Message-Id: <1D3F0C42-054E-48D6-A09F-A91A2DC63604@msweet.org>
References: <77A43605-2C50-4076-835A-0BE5AEAA2125@msweet.org> <5D41B566-E9AC-47F1-ADDD-B1EB9C83712A@hp.com> <ADEF99F9-F543-4B0A-BC1F-614977CB86EA@msweet.org> <A29F4BFE-5A1E-4CCA-B64A-C9A9DC46565F@hp.com> <E2FAD2DC-E3C9-45E9-A303-CC862E306FF0@hp.com>
To: "Kennedy, Smith (Wireless & IPP Standards)" <smith.kennedy@hp.com>
X-Mailer: Apple Mail (2.3608.80.23.2.2)
Cc: PWG IPP Workgroup <ipp@pwg.org>, PWG IPP Everywhere Self-Certification Reflector <ippeveselfcert@pwg.org>
Subject: Re: [IPP] Posted 1.1 release candidate tools
X-BeenThere: ipp@pwg.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: ISTO-PWG Internet Printing Protocol workgroup discussion forum <ipp.pwg.org>
List-Unsubscribe: <https://www.pwg.org/mailman/options/ipp>, <mailto:ipp-request@pwg.org?subject=unsubscribe>
List-Archive: <http://www.pwg.org/pipermail/ipp/>
List-Post: <mailto:ipp@pwg.org>
List-Help: <mailto:ipp-request@pwg.org?subject=help>
List-Subscribe: <https://www.pwg.org/mailman/listinfo/ipp>, <mailto:ipp-request@pwg.org?subject=subscribe>
From: Michael Sweet via ipp <ipp@pwg.org>
Reply-To: Michael Sweet <msweet@msweet.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Errors-To: ipp-bounces@pwg.org
Sender: ipp <ipp-bounces@pwg.org>

Smith,

> On May 21, 2020, at 10:46 AM, Kennedy, Smith (Wireless & IPP Standards) <smith.kennedy@hp.com> wrote:
>>> ...
>>> These tests (for requested-attributes='printer-description' and ='job-template') were added because the non-conformance to STD92 was causing problems with getting full IPP Everywhere support working in CUPS.
>>> 
>>> I'd like to know what the failures were - too many attributes returned, too few? Too many isn't a serious interoperability issue - might lead to some laziness on the Client side but testing will catch that - but too few prevents Clients from working which *is* a serious interoperability issue...
>> 
>> I'll look into this - more soon.
> 
> OK, so the "job-template" returns basically nothing other than "attributes-charset" and "attributes-natural-language", which seems too few. 😞 It seems the firmware is equating 'job-template' with 'none' and 'printer-description' with 'all'.

I'm happy with relaxing the tests to allow 'all' behavior for group names (lazy, but not an issue for interoperability and an implementation choice I made early in CUPS history and later updated to Do The Right Thing...), but clearly the printer thinks 'job-template' is an attribute name and is filtering out all attributes except 'job-template'... :/

The current expectation (based on the RFC text that dates back to IPP/1.0) is that 'job-template' will return all of the 'xxx-default', 'xxx-ready', and 'xxx-supported' Printer attributes that correspond to the supported Job Template attributes for the printer.

....

The current ad-hoc best practice (as implemented by CUPS and cups-filters) is to send "requested-attributes"='all','media-col-database' as an IPP/2.0 request and then (if that fails) send "requested-attributes"='all' as an IPP/1.1 request and deal with the lack of "media-col-database" information...

When monitoring status, CUPS (and others) typically provide a list of (status) attributes they require, and largely that seems to work with most printers.

So at the very least we need to make sure that 'all','media-col-database' works, as well as requests for specific attributes.  I would also like to see that 'printer-description' and 'job-template' work (to the extent that they return at least the corresponding attributes without an error if they return more), although perhaps we could provide automatic exceptions (i.e. not treat them as hard failures) for some period of time (perhaps for products released through the middle of 2021?) since they are not as critical to interoperability with existing Clients?

________________________
Michael Sweet



_______________________________________________
ipp mailing list
ipp@pwg.org
https://www.pwg.org/mailman/listinfo/ipp