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.

Reply via email to