camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Robert (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-4477) parseURI in org.apache.camel.component.printer.PrinterConfiguration leaves a prefixed "/" on the printername attribute which should be removed
Date Thu, 22 Sep 2011 12:11:25 GMT
parseURI in org.apache.camel.component.printer.PrinterConfiguration leaves a prefixed "/" on
the printername attribute which should be removed
----------------------------------------------------------------------------------------------------------------------------------------------

                 Key: CAMEL-4477
                 URL: https://issues.apache.org/jira/browse/CAMEL-4477
             Project: Camel
          Issue Type: Bug
    Affects Versions: 2.8.1
         Environment: Windows 7 64-bit, jdk 1.6.0_20
            Reporter: Denis Robert


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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message