[ 
https://issues.apache.org/jira/browse/CAMEL-4477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-4477:
-------------------------------

    Component/s: camel-printer

> 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
>          Components: camel-printer
>    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

        

Reply via email to