Bug 459058

Summary: Fails to create printer without feedback for incorrect URI
Product: [Frameworks and Libraries] print-manager Reporter: Paul Menzel <pmenzel>
Component: generalAssignee: Daniel Nicoletti <dantti12>
Status: RESOLVED FIXED    
Severity: normal CC: noeerover, pmenzel
Priority: NOR    
Version: 22.04.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 6.1

Description Paul Menzel 2022-09-13 12:03:32 UTC
Add a new printer, choose LPD and enter lpd://printer.example.net/. Follow and finish the dialog. No printer is created. Starting the dialog with `plasma-open-settings`, and doing it again, it says:

    libkcups: CUPS-Add-Modify-Printer last error: 1028 Bad device-uri "lpd://lpd://printer.examp.net".
    1028 "Bad device-uri \"lpd://lpd://printer.example.net\"."

It’d be great, if that error would be shown by the dialog too. (And maybe the dialog improved, so the schema is not entered by default as happened here.)
Comment 1 Mike 2024-04-23 15:04:32 UTC
We believe this issue to be resolved with Plasma6, can you try again with Plasma6 and report back?
Comment 2 Mike 2024-04-25 20:16:38 UTC
Git commit 44cb896226a0b74aacef2868c4e01f8b208ab94d by Mike Noe.
Committed on 25/04/2024 at 20:13.
Pushed by noee into branch 'master'.

kcm/qml: Add LPD device setup component

This device support is brought forward from the legacy add-printer app.
Related: bug 450154, bug 403189
FIXED-IN: 6.1

M  +3    -1    src/kcm/ui/FindPrinter.qml
A  +95   -0    src/kcm/ui/components/Lpd.qml     [License: GPL(v2.0+)]

https://invent.kde.org/plasma/print-manager/-/commit/44cb896226a0b74aacef2868c4e01f8b208ab94d