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 2010/02/02 18:00:32 UTC

[jira] Created: (CAMEL-2439) File consumer - Consuming from absolute paths can cause issue on Windows when moving file when done

File consumer - Consuming from absolute paths can cause issue on Windows when moving file when done
---------------------------------------------------------------------------------------------------

                 Key: CAMEL-2439
                 URL: https://issues.apache.org/activemq/browse/CAMEL-2439
             Project: Apache Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 2.1.0
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
             Fix For: 2.2.0


When using a file consumer with an absolute path, eg {{from("file:/data")}} then when the process is done and it wants to move the file to {{.camel}} sub dir of {{/data}} it may not do that correctly on Windows.

The issue is the logic in Camel is based upon that a path starting with \ is considered absolute, as it is on Unix OS and other platforms. Where as on Windows {{java.io.File}} returns {{false}} for such files. The other return {{true}}. So we need to cater for this and make Windows return {{true}} as well so the logic is consistent across OS.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CAMEL-2439) File consumer - Consuming from absolute paths can cause issue on Windows when moving file when done

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-2439.
--------------------------------

    Resolution: Fixed

trunk: 905715.

> File consumer - Consuming from absolute paths can cause issue on Windows when moving file when done
> ---------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2439
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2439
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.1.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.2.0
>
>
> When using a file consumer with an absolute path, eg {{from("file:/data")}} then when the process is done and it wants to move the file to {{.camel}} sub dir of {{/data}} it may not do that correctly on Windows.
> The issue is the logic in Camel is based upon that a path starting with \ is considered absolute, as it is on Unix OS and other platforms. Where as on Windows {{java.io.File}} returns {{false}} for such files. The other return {{true}}. So we need to cater for this and make Windows return {{true}} as well so the logic is consistent across OS.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.