System-config-printer keeps asking for network printer credentials
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
system-config-printer (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hello.
I think I found a small bug in the printing process of Xubuntu 20.04.02 LTS. I have a networked laser printer (Xerox Phaser 3250) that requires username/password credentials to print. The device is present in the CUPS page (see the Printers page in http://
Anyway, I noticed that the OS will sometimes pester me to enter the same credentials each time I try to print something. I recall the printing authorization window does have a "Remember password" checkbox that seemingly does nothing. Now why I am mentioning that this happens only sometimes? It's because I noticed that different programs will use different authorization windows to get printer credentials. For example, Mousepad will try to get credentials by using a CUPS popup dialog (I think). LibreOffice seems to popup its own small password entry window. This bug only applies to the cases where the printing is done via system-
So, after a short debug session I managed to narrow down the problem to this file: /usr/share/
It can also be reliably triggered queueing a print job, killing scp-dbus-service.py and applet.py and re-running them in this order:
1) /usr/share/
2) /usr/share/
Though this jobviewer.py auth dialog will successfully save the printer credentials to the keyring, if the checkbox is ticked (verified with Seahorse), it will fail to read them next time, assume the credentials are missing, and ask the user to enter them. The error appears to happen in jobviewer.py:
Line 1056: search_obj = ItemSearch(service, attrs)
This line causes the following error to appear in the terminal:
GLib-GIO-CRITICAL **: 19:28:31.663: g_dbus_
The call fails to fetch any credentials and instead returns an empty result. I've written a short python script (see test.py) that reproduces the issue and triggers the same error.
Related libsecret documentation:
https:/
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: system-
ProcVersionSign
Uname: Linux 5.4.0-66-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CupsErrorLog:
CurrentDesktop: XFCE
Date: Fri Mar 5 19:34:54 2021
InstallationDate: Installed on 2020-01-20 (409 days ago)
InstallationMedia: Xubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
Lpstat: device for Phaser-3250: ipp://192.
Lsusb:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 046d:c069 Logitech, Inc. M-U0007 [Corded Mouse M500]
Bus 001 Device 003: ID 8087:0aaa Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Lsusb-t:
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/8p, 10000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=
|__ Port 4: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 14: Dev 3, If 0, Class=Wireless, Driver=btusb, 12M
|__ Port 14: Dev 3, If 1, Class=Wireless, Driver=btusb, 12M
MachineType: Acer Predator PH317-52
PackageArchitec
Papersize: a4
PpdFiles:
Error: command ['fgrep', '-H', '*NickName', '/etc/cups/
grep: /etc/cups/
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: system-
UpgradeStatus: Upgraded to focal on 2020-07-15 (233 days ago)
dmi.bios.date: 03/27/2019
dmi.bios.vendor: Insyde Corp.
dmi.bios.version: V1.26
dmi.board.
dmi.board.name: Sienna_CFS
dmi.board.vendor: CFL
dmi.board.version: V1.26
dmi.chassis.type: 10
dmi.chassis.vendor: Acer
dmi.chassis.
dmi.modalias: dmi:bvnInsydeCo
dmi.product.family: Predator Helios 300
dmi.product.name: Predator PH317-52
dmi.product.sku: 0000000000000000
dmi.product.
dmi.sys.vendor: Acer
test.py: https:/ /pastebin. com/FJTWc1uX