camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CAMEL-3100) ${file:length} should return 0 instead of null if the file length is 0
Date Thu, 02 Sep 2010 05:14:40 GMT

     [ https://issues.apache.org/activemq/browse/CAMEL-3100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Willem Jiang resolved CAMEL-3100.
---------------------------------

    Resolution: Fixed

Applied patch into camel trunk.

> ${file:length} should return 0 instead of null if the file length is 0
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-3100
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3100
>             Project: Apache Camel
>          Issue Type: Bug
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 2.5.0
>
>
> {code}
> --- camel-core/src/main/java/org/apache/camel/component/file/GenericFile.java	(revision
991781)
> +++ camel-core/src/main/java/org/apache/camel/component/file/GenericFile.java	(working
copy)
> @@ -122,7 +122,8 @@
>              message.setHeader("CamelFileRelativePath", getRelativeFilePath());
>              message.setHeader(Exchange.FILE_PARENT, getParent());
>      
> -            if (getFileLength() > 0) {
> +            if (getFileLength() >= 0) {
>                  message.setHeader("CamelFileLength", getFileLength());
>              }
>              if (getLastModified() > 0) {
> {code}

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


Mime
View raw message