All of lore.kernel.org
 help / color / mirror / Atom feed
From: Till Kamppeter <till.kamppeter@gmail.com>
To: Ira McDonald <blueroofmusic@gmail.com>,
	Aveek Basu <aveek.basu@lexmark.com>,
	Open Printing <printing-architecture@lists.linux-foundation.org>
Subject: [Printing-architecture] OpenPrinting News
Date: Tue, 3 Sep 2019 23:16:37 +0200	[thread overview]
Message-ID: <f24ff0cc-6c44-ae85-8c71-2d8fa421f893@gmail.com> (raw)

Hi,

here is the newest development of the last month.

    Till

----------


Google Summer of Code 2019
--------------------------

Coding ended and the final evaluations are completed, the completed 
projects officially announced by Google.

For the Linux Foundation we got 12 student slots in the beginning and 
after 1 stucent dropping out before coding started we had 11 students 
working. 2 failed in the second and 2 in the final evaluations, leaving 
7 having completed their GSoC projects.

This is the worst year in terms of failing students for us.

For OpenPrinting there started 5 students and and 1 failed in the final 
evaluation. The other 4 completed the program successfully.

Here are the projects with their submitted work product links:


1. Generic Framework to turn legacy drivers consisting of CUPS filters 
and PPDs into Printer Applications

Student: Dheeraj Yadav
Mentor: Till Kamppeter

https://gist.github.com/dheeraj135/852733a6944d2f7ede670fe9d3d0ac6a

PASSED

Dheeraj will soon work with Sahil to get his Printer Application 
framework documented on the new OpenPrinting web site.


2. Improve the pdftoraster filter to not use undocumented/unstable APIs 
of Poppler

Student: Tanmay Anand
Mentor: Sahil Arora

https://github.com/tanmayanand44/cups-filters-gsoc19/wiki/Google-Summer-of-Code-2019-%7C-The-Linux-Foundation-%7C-Improving-pdftoraster-filter-to-use-stable-Poppler-APIs

PASSED

Tanmay completed his original project already in the first month. We 
asked him whether he would take a project for the rest of the time and 
he accepted. So he worked also on the adapter backend for the GTK3 print 
dialog to use the Common Print Dialog Backends (CPDB). Mentor for this 
project is Dongxu Li. He did not complete this at the end of the GSoC 
but promised to complete it after GSoC.


3. IPP: ipptool test suite updates for IPP errata updates

Student: Sharad Shukla
Mentors: Smith Kennedy, Ira McDonald, Danny Brennan

https://github.com/Sharadd15/ippsample/wiki/Gsoc-2k19-%7C-OpenPrinting-%7C-The-Linux-Foundation-%7C-Ipptool-test-suite-updates-for-IPP-errata-updates

PASSED

Sharad will soon complete his not yet completed assignment of the 
bannertopdf filter also supporting the old bannertops input format.


4. ipptool test suite for IPP System Service

Student: Aakash Lahoti
Mentors: Smith Kennedy, Ira McDonald, Danny Brennan

https://github.com/aakashlahoti/Google-Summer-Of-Code-2019-The-Linux-Foundation

PASSED


5. Turn the scp-dbus-service of system-config-printer into C

Student: Sobhan Mondal
Mentors: Zdenek Dohnal

https://github.com/sobhaniiest/scp-dbus-service

FAILED (final evaluation)

Sobhan promised to complete his work after GSoC.


The project results will also get added to the new OpenPrinting web site.


Avahi
-----

Mike Sweet has posted on the

https://github.com/lathiat/avahi/issues/125

and he is of the same opinion as me that the DNS-SD records of local 
services via the loopback ("lo") device should carry the "localhost" 
host name and not the network host name of the machine:

----------
If Avahi returns 127.0.0.1 as one of the addresses for a .local lookup, 
that will cause some serious security problems when machine A (a.local.) 
looks up machine B ("b.local.") and gets its own loopback address. By 
returning localhost ("localhost.") that security issue is avoided.

Keep in mind as well that when CUPS tries to connect to a 
printer/server, it tries all of the addresses returned by a lookup in 
parallel until one of the connections succeeds. Since CUPS also 
validates the Host: header in requests (and block any attempt to 
communicate with cupsd over the loopback interface if the hostname is 
not "localhost" or "localhost."), this will result in a successful 
connection but a failed request, breaking printing.

So you really do need to return "localhost" for services registered on 
the loopback interface.
----------

No reaction from Trent Lloyd yet.


OpenPrinting web site
---------------------

Now with the GSoC completed we are resuming our work on the web site 
with Sahil leading the project.

Most of the site is in place, most important part to add now are the 
results of the 5 GSoC projects of this year.

Also we need to link to the OpenPrinting database interface web app:

https://github.com/OpenPrinting/openprinting.github.io/issues/55

We will continue using this web app and the MySQL database (which we now 
feed from the foomatic-db repository on GitHub) as it is not worthwhile 
(possible?) to implement a replacement on it running on GitHub.

The web app needs to get the outfit of our new web site:

https://github.com/OpenPrinting/openprinting.github.io/issues/58


CUPS
----

2.3.0 released.

CUPS 2.3.0 is finally out! And the licensing resolved! With more than 
one year or 3 Ubuntu releases of delay it appeared on Fri, August 23, 
the day after Ubuntu Eoan (19.10) Feature Freeze. The license solution 
is that the Apache 2.0 license gets an exception added which allows 
linking with (L)GPL software, so cups-filters and other software using 
the CUPS library does not need any license change.

For new features see Mike's slides of the last OpenPrinting Summit:

https://ftp.pwg.org/pub/pwg/liaison/openprinting/presentations/cups-plenary-april-19.pdf


Changes in CUPS v2.3.1
----------------------

- Fixed spelling of "fold-accordion".


Changes in CUPS v2.3.0
----------------------

- CVE-2019-8696 and CVE-2019-8675: Fixed SNMP buffer overflows
   (rdar://51685251)
- Added a GPL2/LGPL2 exception to the new CUPS license terms.
- Documentation updates (Issue #5604)
- Localization updates (Issue #5637)
- Fixed a bug in the scheduler job cleanup code (Issue #5588)
- Fixed builds when there is no TLS library (Issue #5590)
- Eliminated some new GCC compiler warnings (Issue #5591)
- Removed dead code from the scheduler (Issue #5593)
- "make" failed with GZIP options (Issue #5595)
- Fixed potential excess logging from the scheduler when removing job
   files (Issue #5597)
- Fixed a NULL pointer dereference bug in `httpGetSubField2` (Issue
   #5598)
- Added FIPS-140 workarounds for GNU TLS (Issue #5601, Issue #5622)
- The scheduler no longer provides a default value for the description
   (Issue #5603)
- The scheduler now logs jobs held for authentication using the error
   level so it is clear what happened (Issue #5604)
- The `lpadmin` command did not always update the PPD file for changes
   to the `cupsIPPSupplies` and `cupsSNMPSupplies` keywords (Issue #5610)
- The scheduler now uses both the group's membership list as well as the
   various OS-specific membership functions to determine whether a user
   belongs to a named group (Issue #5613)
- Added USB quirks rule for HP LaserJet 1015 (Issue #5617)
- Fixed some PPD parser issues (Issue #5623, Issue #5624)
- The IPP parser no longer allows invalid member attributes in
   collections (Issue #5630)
- The configure script now treats the "wheel" group as a potential
   system group (Issue #5638)
- Fixed a USB printing issue on macOS (rdar://31433931)
- Fixed IPP buffer overflow (rdar://50035411)
- Fixed memory disclosure issue in the scheduler (rdar://51373853)
- Fixed DoS issues in the scheduler (rdar://51373929)
- Fixed an issue with unsupported "sides" values in the IPP backend
   (rdar://51775322)
- The scheduler would restart continuously when idle and printers were
   not shared (rdar://52561199)
- Fixed an issue with `EXPECT !name WITH-VALUE ...` tests.
- Fixed a command ordering issue in the Zebra ZPL driver.
- Fixed a memory leak in `ppdOpen`.


No changes on 2.2.x branch.


cups-filters
------------

Currently released is 1.25.4.

Many releases happened during the short time to get bug fixes into the 
upcoming Ubuntu 19.10 (Eoan).

1.25.5:

Bug fix release, mainly for cups-browsed not to die on left over locally 
generated queues of unclaen shutdown of the previous session.

1.25.4:

Bug fix release for the page geometry and CUPS Raster output issues in 
the imagetoraster, imagetopdf, and pdftoraster filters.

1.25.3:

Bug fix release, especially to fix a compatibility issue with CUPS 2.2.12.

1.25.2:

Improved cups-browsed's handling of the DNS-SD records of advertised 
local and remote IPP print services. Especially make sure that local 
queues do not get already removed when the service on a single network 
interface disappears (for example Wi-Fi turned off) while still present 
on other interfaces. Also let local services preferably be accessed 
through the loopback ("localhost") interface to avoid data leaks into 
the network.


CHANGES IN V1.25.5

	- rastertopdf: Let the getIPPColorProfileName() function not
	  return a pointer to a local variable (clang warning, Issue
	  #150).
	- cups-browsed: If a locally generated queue (usually with
           "implicitclass://..." URI) left over from a previous
           (crashed) session is picked up on startup, do not set the
           URI as the remote printer's URI and do not cause a fatal
           error on a failed get-printer-attributes IPP request (Issue
           #148, Debian bug #939316).
	- pdftopdf: Do not preserve encryption, since the output
           already goes into the printer (Issue #146, Pull request
           #147).

CHANGES IN V1.25.4

	- imagetoraster: Do not call imagetops and pstoraster for
	  classifications and page labels as these filters are not
	  included any more with cups-filters.  Classifications and
	  page labels are currently not supported for direct image
	  printing, only for PDF or PostScript input (which goes
	  through pdftopdf).
	- imagetoraster, imagetopdf: Fixed auto-rotation of images to
	  fit output page best (Issue #145).
	- pdftoraster: If the PPD contains several equally-sized page
	  size entries which match the size of the input page and one
	  is the size selected by the user via the "PageSize" or
	  "media" option (or the default selection in the PPD) then
	  prefer this one instead of simply the first matching one.
	- pdftoraster: If the input page size cannot be matched with
	  one of the PPD's page sizes it is considered a custom size,
	  fill the page size name field of the CUPS Raster header with
	  "Custom.XXXxYYY" then.
	- pdftoraster: Match the input page size with a page size in
	  the PPD only if the differences of the dimensions are less
	  than 1%, also match the input page size against the
	  imageable area of the PPD's page sizes if no match with the
	  full page size is found (Issue #138).

CHANGES IN V1.25.3

	- Sample PPDs: In HP-Color_LaserJet_CM3530_MFP-PDF.ppd renamed
	  "custom" choice of the option "stapleoption" to "customsize"
	  as from CUPS 2.2.12 on "custom" is not accepted any more as a
	  choice name in a PPD file.
	- cups-browsed: Fixed check whether the remote printer
	  understands PWG Raster (Issue #141).

CHANGES IN V1.25.2

	- foomatic-rip: Fixed segmentation fault when running
	  foomatic-rip by hand and the PRINTER environment variable is
	  not set (Pull request #139).
	- cups-browsed: Added note to cups-browsed.conf and man page
	  about IP-based URIs depending on the network interface used.
	- cups-browsed: For each DNS-SD-discovered printer register
	  each DNS-SD discovery instance with network interface,
	  family, and IPP type. When DNS-SD messages of instances
	  disappearing show up, only unregister this instance and
	  remove the printer only if no instance is left. This
	  prevents a local queue of a still available printer being
	  removed when Wi-Fi (= one interface) is turned off (Issue
	  #136).
	- cups-browsed: If a remote printer is served from the local
	  machine, prefer the "localhost"/loopback interface URI.
	- cups-browsed: If a remote printer is discovered more than
	  once, use the new instance only if it has no downgrades and
	  at least one upgrade compared to the old one. Features
	  currently compared are IPP/IPPS, loopback interface or not,
	  and discovery via CUPS legacy/LDAP/DNS-SD.
	- cups-browsed: If an Avahi-discovered entry comes through the
	  "lo" interface, always use the host name "localhost". Use
	  IP addresses instead of host names only if explicitly
	  requested.
	- cups-browsed: Consider remote printer entries also as from
	  the same printer if one has the local machine's network name
	  and the other "localhost" as host name (Issue #136).


ippusbxd
--------

No further news.


Common Print Dialog Backends
----------------------------

When packaging CUPS 2.2.12 for Ubuntu Eoan (19.10) the automatic tests 
of Ubuntu's build servers failed cpdb-libs and after several days of 
debugging I found out that libcups is not initializing some glbal 
variables with default host name, port, domain socket file for the local 
CUPS server in some cases. This prevented the CUPS backend from 
accessing the printer's capabilities via get-printer-attributes IPP 
request and I had to apply a workaround in the cpdb-backend-cups project.

Upstream bug report on CUPS:

https://github.com/apple/cups/issues/5642

Workaround:

https://github.com/OpenPrinting/cpdb-backend-cups/commit/d8d7aa10

Released cpdb-backend-cups 1.1.1 with the fix:

- Added "ippPort()" call to the beginning of the program, to initialize 
libcups (Issue #2)

             reply	other threads:[~2019-09-03 21:16 UTC|newest]

Thread overview: 84+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-03 21:16 Till Kamppeter [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-12-21  4:05 [Printing-architecture] OpenPrinting News Till Kamppeter
2023-11-28  1:30 Till Kamppeter
2023-11-03  9:00 Till Kamppeter
2023-10-04 23:48 Till Kamppeter
2023-09-05 22:06 Till Kamppeter
2023-07-04 16:51 Till Kamppeter
2023-05-25  9:07 Till Kamppeter
2023-04-16 21:06 Till Kamppeter
2023-03-28 20:56 Till Kamppeter
2023-02-27 23:35 Till Kamppeter
2023-01-20 22:29 Till Kamppeter
2022-12-19  0:26 Till Kamppeter
2022-11-21 13:43 Till Kamppeter
2022-10-21  0:38 Till Kamppeter
2022-09-22 17:43 Till Kamppeter
2022-08-19 22:13 Till Kamppeter
2022-06-14 18:51 Till Kamppeter
2022-05-11 22:12 Till Kamppeter
2022-04-13 20:08 Till Kamppeter
2022-03-18 15:00 Till Kamppeter
2022-02-14 18:38 Till Kamppeter
2022-01-17 18:16 Till Kamppeter
2021-12-10 19:25 Till Kamppeter
     [not found] ` <20211210212022.7818a35d@laptop64>
2021-12-10 22:54   ` Till Kamppeter
2021-11-13 23:49 Till Kamppeter
2021-10-12 22:09 Till Kamppeter
2021-10-13 10:28 ` Zdenek Dohnal
2021-10-13 11:57   ` Till Kamppeter
2021-10-13 12:32     ` Zdenek Dohnal
2021-09-16 19:18 Till Kamppeter
2021-08-13 22:17 Till Kamppeter
2021-07-17  0:10 Till Kamppeter
2021-07-18 10:50 ` Andreas Radke
2021-06-15 11:21 Till Kamppeter
2021-05-21 16:30 Till Kamppeter
2021-04-11 12:53 Till Kamppeter
2021-03-06  0:14 Till Kamppeter
2021-02-08 23:13 Till Kamppeter
2021-02-10  6:01 ` Zdenek Dohnal
2021-01-15 20:05 Till Kamppeter
2020-12-13 20:10 Till Kamppeter
2020-11-12 22:59 Till Kamppeter
2020-10-26 19:54 Till Kamppeter
2020-09-11 18:53 Till Kamppeter
2020-08-14  6:29 Till Kamppeter
2020-08-14 11:42 ` Till Kamppeter
2020-08-17  6:00   ` Zdenek Dohnal
2020-07-10 18:57 Till Kamppeter
2020-06-05 22:58 Till Kamppeter
2020-05-18 21:27 Till Kamppeter
2020-04-11  8:32 Till Kamppeter
2020-03-20 22:18 Till Kamppeter
2020-03-23  6:03 ` Zdenek Dohnal
2020-02-17 11:19 Till Kamppeter
2020-01-17 21:24 Till Kamppeter
2019-12-14  0:44 Till Kamppeter
2019-11-06 23:06 Till Kamppeter
2019-08-07 12:44 Till Kamppeter
2019-06-04 10:41 Till Kamppeter
2019-06-04 11:24 ` Zdenek Dohnal
2019-05-12 16:03 Till Kamppeter
2019-05-12 18:15 ` Matthias Apitz
2019-05-12 18:48   ` Till Kamppeter
2019-04-05 15:10 Till Kamppeter
2019-04-05 19:20 ` Till Kamppeter
2019-04-07 15:21   ` Till Kamppeter
2019-04-07 15:28     ` Ira McDonald
2019-04-07 15:38 ` Till Kamppeter
2019-03-06 14:55 Till Kamppeter
2019-02-13 18:14 Till Kamppeter
2019-02-13 20:34 ` Michael Sweet
2019-02-13 21:26   ` Till Kamppeter
2019-02-13 21:43     ` Michael Sweet
2019-02-13 23:56     ` Solomon Peachy
2019-02-14  8:34       ` Zdenek Dohnal
2019-02-14 17:49       ` Kurt Pfeifle
2019-02-14 20:57         ` Till Kamppeter
2019-02-14 23:43           ` Kurt Pfeifle
2019-02-14 13:21 ` Zdenek Dohnal
2019-02-14 14:39   ` Zdenek Dohnal
2019-02-14 15:31     ` Till Kamppeter
2019-02-14 16:12       ` Zdenek Dohnal
2019-02-14 14:52   ` Till Kamppeter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f24ff0cc-6c44-ae85-8c71-2d8fa421f893@gmail.com \
    --to=till.kamppeter@gmail.com \
    --cc=aveek.basu@lexmark.com \
    --cc=blueroofmusic@gmail.com \
    --cc=printing-architecture@lists.linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.