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

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

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

        

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

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ 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

        

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

Posted by "Claus Ibsen (Resolved) (JIRA)" <ji...@apache.org>.
     [ 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

        

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

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13112549#comment-13112549 ] 

Claus Ibsen commented on CAMEL-4477:
------------------------------------

Thanks for reporting.

Do you want to try and provide a patch for this problem?
You can read about contributing here. And also some info how to create a patch
http://camel.apache.org/contributing.html

> 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