https://bugs.kde.org/show_bug.cgi?id=521508

            Bug ID: 521508
           Summary: "Printer/Device Admin Page" points to wrong URI for
                    IPP devices
    Classification: Applications
           Product: systemsettings
      Version First 6.6.4
       Reported In:
          Platform: Ubuntu
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: kcm_printer_manager
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

DESCRIPTION
when running an IPP server on e.g. localhost, connected to cupsd,
the kde printer settings dialog shows:
"CUPS Printer Overview Help" -> http://localhost:631/help/overview.html
"Printer/Device Admin Page" -> "http://brother_td_2020_usb";
despite the actual printer admin beeing:
http://127.0.0.1:8142/Brother_TD-2020_(USB)

the IPP server is exposing the information correctly via:
printer-more-info (uri) = http://127.0.0.1:8142/Brother_TD-2020_(USB)/
printer-uri-supported (uri) =
ipp://127.0.0.1:8142/ipp/print/Brother_TD-2020_(USB)

and CUPS reports:
printer-more-info (uri) = http://localhost:631/printers/Brother_TD_2020_USB
printer-uri-supported (uri) = ipp://localhost:631/printers/Brother_TD_2020_USB
device-uri (uri) = implicitclass://Brother_TD_2020_USB/

so from my point of view, the issue is in ui/PrinterSettings.qml:90
```qml
    const url = new URL(devUri.text)
```
for IPP printers it should use "printer-more-info" instead of `device-uri`


STEPS TO REPRODUCE
1. run a PAPPL(https://www.msweet.org/pappl/) app (e.g.
https://github.com/arminfelder/br-thermal-printer-app)
2. add a printer to the PAPPL app
3. go to KDE printer settings dialog, and check the printers Device Admin Uri

OBSERVED RESULT
device-uri is used instead of the actual admin webpage of the IPP printer

EXPECTED RESULT
"Printer/Device Admin Page" points to the  endpoint defined in
printer-more-info 

SOFTWARE/OS VERSIONS
Operating System (available in the Info Center app, or by running `kinfo` in a
terminal window):
KDE Plasma Version: 6.6.4
KDE Frameworks Version: 6.24.0
Qt Version: 6.10.2

ADDITIONAL INFORMATION
```
printer-more-info (uri)

   This RECOMMENDED Printer attribute contains a URI used to obtain more
   information about this specific Printer.  For example, this could be
   an HTTP URI referencing an HTML page accessible to a web browser.
   The information obtained from this URI is intended for End User
   consumption.  Features outside the scope of IPP can be accessed from
   this URI.  The information is intended to be specific to this Printer
   instance and site-specific services, e.g., Job pricing, services
   offered, and End User assistance.  The device manufacturer can
   initially populate this attribute.
``` 5.4.7 rfc8011 (https://datatracker.ietf.org/doc/html/rfc8011#section-5.4.7)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to