You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Roberto Flores (JIRA)" <ji...@apache.org> on 2019/05/24 19:39:00 UTC

[jira] [Commented] (CAMEL-13483) File Component: Add option to fail startup when not having read permission on folder

    [ https://issues.apache.org/jira/browse/CAMEL-13483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16847850#comment-16847850 ] 

Roberto Flores commented on CAMEL-13483:
----------------------------------------

Hi.

I have just sent a PR for this issue.
I added a new option called startingDirectoryMustHaveAccess similar to startingDirectoryMustExist. It checks that the directory has read and write permissions.

Could you please give it a look.

Best,
Roberto.

> 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
>            Priority: Major
>             Fix For: 3.0.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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)