qzind / tray

Browser plugin for sending documents and raw commands to a printer or attached device.
https://qz.io
Other
824 stars 266 forks source link

MediaSizeName can contain invalid characters #1197

Closed tresf closed 8 months ago

tresf commented 8 months ago

As observed in https://github.com/qzind/tray/pull/1148#issuecomment-1773336829, the paper sizes (Java calls these MediaSizeName's) can contain invalid characters.

OS: Ubuntu 22.04 JDK: 11.0.20.1+1 Printer: Epson WorkForce Pro WF-4740 (IPP)

Name shows 4 x 6″ instead of 4 x 6 or 4x6.

image

The choiceName field contains a valid value, but it's not currently public/exposed by the JDK.

Upstream (private) bug report: QZ-15

tresf commented 8 months ago

We dove into this, in the case of the offending machine / printer, the Ubuntu OS shows these same characters too, so at this time we do not believe it to be QZ Tray related.