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

            Bug ID: 500416
           Summary: Okular wrongly applies a custom User Id and User Code
                    from a printer's default settings
    Classification: Applications
           Product: okular
           Version: 24.12.2
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: printing
          Assignee: okular-devel@kde.org
          Reporter: julius.wen...@tu-dresden.de
  Target Milestone: ---

SUMMARY
For some printing jobs, a User Id and a User Code have to be sent to the
printer. Those data can be set permanently in the printer's default settings,
for example via the CUPS web interface. There are often used values for both,
but it is possible to set a "custom value" for both.
When printing, the User Id and User Code have to be included into the printing
data (PostScript). In case of a custom User Id and a custom User Code, Okular
handles this incorrectly, making printers refuse to print the jobs. Instead of
the actual code/Id, okular includes the word "Custom".

STEPS TO REPRODUCE
1. Set a custom User Code and a Custom User Id in the printer's default
settings (for example, set both to 2357), for example via the CUPS web
interface (select the printer -> set default settings -> Job Log -> User Code /
User Id)
2. Print a document using Okular and the printer configured in step 1
3. Intercept the Communication to the printer (I use an IPP printer and listen
to the communication using wireshark)
4. Look inside the PostScript data and search for the directives '/usrid' and
'/usrcode'

OBSERVED RESULT
There is a directive '/usrid(Custom)def' and a directive '/usrcode(Custom)def'
and the printer refuses to print the document

EXPECTED RESULT
There is a directive '/usrid(2357)def' and a directive '/usrcode(2357)def' and
the printer prints the document (given that the User Id and the User Code are
the correct ones)
(This behavior has been observed using other programs for printing, such as
Firefox, LibreOffice or Zathura)

SOFTWARE/OS VERSIONS
Linux:
'uname -a' gives "Linux [hostname] 6.13.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat,
08 Feb 2025 18:54:55 +0000 x86_64 GNU/Linux"
KDE Plasma Version: not installed
KDE Frameworks Version: 6.11.0-1
Qt Version: 8.6.2

ADDITIONAL INFORMATION
The printer is a Ricoh IM C3010, CUPS  (2.4.11) is using the PostScript PPD
from Openprinting to communicate with the printer

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to