Bug 467685 - cupsDoAuthentication() immediately fails without prompting a password
Summary: cupsDoAuthentication() immediately fails without prompting a password
Status: RESOLVED WORKSFORME
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_printer_manager (show other bugs)
Version: 5.27.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Daniel Nicoletti
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-22 10:12 UTC by The Feren OS Dev
Modified: 2024-05-23 03:45 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description The Feren OS Dev 2023-03-22 10:12:28 UTC
SUMMARY
If you attempt to open the Add a Printer dialog on a user account that is not in the group 'lpadmin', it will instantly fail to find printers with the error 'Forbidden'. 


STEPS TO REPRODUCE
1. Add a user
2. Make sure that user does NOT have lpadmin
3. 'Add a Printer'

OBSERVED RESULT
A password dialog will show to elevate its privileges for the next steps

EXPECTED RESULT
Terminal output:
libkcups: CUPS-Get-Devices last error: 1025 Forbidden
libkcups: Calling cupsDoAuthentication() password_retries: 0
libkcups: Called cupsDoAuthentication(), success: false

(nothing prompted for authentication)

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: KDE neon 5.27
(available in About System)
KDE Plasma Version: 5.27.0
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
This bug also affects Kubuntu 22.04 LTS. All other Desktop Environments scan printers without an error without lpadmin, including system-config-printer.
Comment 1 Mike 2024-04-03 23:51:23 UTC
Can you try this with Plasma6?
Comment 2 Mike 2024-04-23 19:11:16 UTC
We believe this is fixed in the recently released Plasma6.  Can you retest this and report back?
Comment 3 Bug Janitor Service 2024-05-08 03:46:01 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2024-05-23 03:45:27 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!