Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9610

Chmod does not work properly with "recursive=true"

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.15.2
    • Fix Version/s: 2.17.0
    • Component/s: camel-core
    • Labels:
      None
    • Environment:

      java 7 and Linux

      Description

      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&consumer.delay=2000&recursive=true" />
      <camel:to uri="file:local.outputDir?chmod=output.chmod&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.

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              nicolas_mugnier Nicolas Mugnier
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified