camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-9610) Chmod does not work properly with "recursive=true"
Date Thu, 18 Feb 2016 09:03:18 GMT

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

Claus Ibsen commented on CAMEL-9610:
------------------------------------

Its not a straightforward change as the dirs are created using mkdirs which can create multiple
dirs, and you would then need to traverse all those dirs and set the permissions. Though it
ought to be possible to do after the mkdirs.

We love contributions so you are welcome to take a look.

> Chmod does not work properly with "recursive=true"
> --------------------------------------------------
>
>                 Key: CAMEL-9610
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9610
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.15.2
>         Environment: java 7 and Linux
>            Reporter: Nicolas Mugnier
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Hello,
> It seems that the chmod does not work properly with the "recursive=true" URI option.
> The chmod is only applied on the file, not also on the parent directories.
> Example:
> <camel:from uri="file:{{local.inputDir}}?readLock=changed&amp;consumer.delay=2000&amp;recursive=true"
/>
> <camel:to uri="file:{{local.outputDir}}?chmod={{output.chmod}}&amp;charset={{charset}}"/>
> If I paste a file into my input directory, everything works properly.
> However, if I paste a directory into my input directory, only the "final' files will
be chmoded. The parent directories of the file, located in my output directory, are not chmoded.
> Best,
> Nicolas.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message