You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Gert Vanthienen (JIRA)" <ji...@apache.org> on 2010/05/11 07:55:39 UTC
[jira] Created: (CAMEL-2708) File name lost when it starts with the
same characters as the relative directory on the endpoint
File name lost when it starts with the same characters as the relative directory on the endpoint
------------------------------------------------------------------------------------------------
Key: CAMEL-2708
URL: https://issues.apache.org/activemq/browse/CAMEL-2708
Project: Apache Camel
Issue Type: Bug
Components: camel-core
Affects Versions: 2.2.0
Reporter: Gert Vanthienen
Assignee: Gert Vanthienen
Fix For: 2.3.0
When polling file from a directory using a relative file URI, the file name gets lost when it starts with the same characters as the directory name.
E.g. a directory 'orders' containing 'orders-1719.xml' and 'orders-1819.xml'
{code}
from("file:orders").process(new Processor() {
public void process(Exchange exchange) {
// there's no file name on the message here (exchange.getIn().getHeader(Exchange.FILE_NAME) returns null)
}
});
{code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-2708) File name lost when it starts with the
same characters as the relative directory on the endpoint
Posted by "Gert Vanthienen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2708?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gert Vanthienen updated CAMEL-2708:
-----------------------------------
Attachment: CAMEL-2708.diff
Attaching the patch because svn down at the moment
> File name lost when it starts with the same characters as the relative directory on the endpoint
> ------------------------------------------------------------------------------------------------
>
> Key: CAMEL-2708
> URL: https://issues.apache.org/activemq/browse/CAMEL-2708
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.2.0
> Reporter: Gert Vanthienen
> Assignee: Gert Vanthienen
> Fix For: 2.3.0
>
> Attachments: CAMEL-2708.diff
>
>
> When polling file from a directory using a relative file URI, the file name gets lost when it starts with the same characters as the directory name.
> E.g. a directory 'orders' containing 'orders-1719.xml' and 'orders-1819.xml'
> {code}
> from("file:orders").process(new Processor() {
> public void process(Exchange exchange) {
> // there's no file name on the message here (exchange.getIn().getHeader(Exchange.FILE_NAME) returns null)
> }
> });
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CAMEL-2708) File name lost when it starts with
the same characters as the relative directory on the endpoint
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2708?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-2708.
--------------------------------
Resolution: Fixed
Thanks Gert for the patch.
trunk: 943060.
> File name lost when it starts with the same characters as the relative directory on the endpoint
> ------------------------------------------------------------------------------------------------
>
> Key: CAMEL-2708
> URL: https://issues.apache.org/activemq/browse/CAMEL-2708
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.2.0
> Reporter: Gert Vanthienen
> Assignee: Gert Vanthienen
> Fix For: 2.3.0
>
> Attachments: CAMEL-2708.diff
>
>
> When polling file from a directory using a relative file URI, the file name gets lost when it starts with the same characters as the directory name.
> E.g. a directory 'orders' containing 'orders-1719.xml' and 'orders-1819.xml'
> {code}
> from("file:orders").process(new Processor() {
> public void process(Exchange exchange) {
> // there's no file name on the message here (exchange.getIn().getHeader(Exchange.FILE_NAME) returns null)
> }
> });
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.