You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2011/09/22 15:30:26 UTC

[jira] [Updated] (CAMEL-4477) parseURI in org.apache.camel.component.printer.PrinterConfiguration leaves a prefixed "/" on the printername attribute which should be removed

     [ 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