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

Claus Ibsen resolved CAMEL-4477.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.9.0
                   2.8.2
                   2.7.4
         Assignee: Claus Ibsen

Thanks for reporting
                
> 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
>            Assignee: Claus Ibsen
>             Fix For: 2.7.4, 2.8.2, 2.9.0
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to