Chris created CAMEL-13483:
-----------------------------
Summary: File Component: Add option to fail startup when not
having read permission on folder
Key: CAMEL-13483
URL: https://issues.apache.org/jira/browse/CAMEL-13483
Project: Camel
Issue Type: New Feature
Affects Versions: 2.22.4
Reporter: Chris
Fix For: 3.0.0
When starting a file consumer you configure a folder to poll.
When the camel context does not have read access on the folder, there is no
error (or even warning), that route just starts.
But when saving files into the folder, they are not picked up and there is no
further message.
This issue was raised on stackoverflow:
[https://stackoverflow.com/questions/55920217/camel-file-consumer-when-folder-is-not-accessible]
Ideally, the file consumer would check at startup if it has access to the
folder (we should propably check for write access here, but read access could
also be enough?)
If the component (/context) does not have the required access to the folder, it
should throw the error and exit the context (so it isn't started in a failure
state).
This option should be disabled by default.
Also we should think about a way to configure the behavior:
1. For what permission should the consumer check (read / read-write)
2. What should happen when the permission is not given? (just an error / error
+ stop route / error + stop context)
As always, we should make this configurable via a custom bean.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)