GitHub user onders86 opened a pull request:
https://github.com/apache/camel/pull/1781
CAMEL-11437 - probeContentType and preMove attributes causes Exchangeâ¦
â¦.FILE_CONTENT_TYPE to get dropped
This is a very specific fix for the issue.
Better solution would be passing endpoint where bindToExchange method call
done on GenericFile. I guess the design may need such a change on GenericFile.
because in populateHeaders method there are specific conditions tied to
FileEndpoint properties which are not set when concrete instances of
GenericFileProcessStrategy are created without the settings bound to endpoint
like GenericFileRenameProcessStrategy, GenericDeleteProcessStrategy etc. (where
probeContentType is lost)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/onders86/camel CAMEL-11437
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/1781.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1781
----
commit 351c6d01585b25967e5a0100a87de4b6d20a5a2e
Author: onders86 <[email protected]>
Date: 2017-06-23T09:17:22Z
CAMEL-11437 - probeContentType and preMove attributes causes
Exchange.FILE_CONTENT_TYPE to get dropped
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---