]> git.ipfire.org Git - thirdparty/cups.git/commit
Report proper media-source-supported IPP field on numeric InputSlots. #859 860/head
authorValdikSS <iam@valdikss.org.ru>
Tue, 9 Jan 2024 01:21:52 +0000 (04:21 +0300)
committerValdikSS <iam@valdikss.org.ru>
Tue, 9 Jan 2024 01:33:34 +0000 (04:33 +0300)
commit47d0ee3877a34b3cc30686a2c51a10b2833e05b6
tree57a344ca51bfc20da2057a9121722467151e958e
parent229aee3258e2cc92eebc896a5e4eb3a167fa16d3
Report proper media-source-supported IPP field on numeric InputSlots. #859

Windows 11 version 22H2 build 22621.2861 silently fails to add Mopria
auto-discovered printer if it reports a number (a digit as a string)
in media-source-supported field.
If you try to add such a printer using modern control panel, it will
show endless "connecting…" message, and if you add it using old
control panel, it would be added "successfully", but under
"unrecognized" device type, and you won't be able to print on it.

Fix the issue by
    * By comparing also by human-readable InputSlot name
    * By mapping number to "tray-N" string
cups/ppd-cache.c