Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.8.1
-
None
-
Windows 7 64-bit, jdk 1.6.0_20
-
Novice
Description
in PrinterConfiguration.parseURI(), the line:
setPrintername(uri.getPath());
ends up leaving the starting "/" which is not really a part of the printer's name. When the PrinterProducer later searches for the matching PrintService, it attempts to recreate the printer path from the host name and the printer name with the following:
setPrinter("\\\\" + config.getHostname() + "
" + config.getPrintername());
which ends up with a string like: \\<HostName>\/<printer> because the leading "/" was not removed from the printer name, and which leads to the printer never being found.