Camel
  1. Camel
  2. CAMEL-6099

File producer - See if we can support chmod option like ftp producer

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.15.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Moderate

      Description

      See
      http://stackoverflow.com/questions/15006065/write-file-with-camel-and-set-chmod

      There is some links on that to other SO about how to set chmod using the java file api.

        Activity

        Hide
        ASF GitHub Bot added a comment -

        GitHub user kevinearls opened a pull request:

        https://github.com/apache/camel/pull/313

        CAMEL-6099 Add chmod option to file producer

        You can merge this pull request into a Git repository by running:

        $ git pull https://github.com/kevinearls/camel CAMEL-6099

        Alternatively you can review and apply these changes as the patch at:

        https://github.com/apache/camel/pull/313.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 #313


        commit 5058b4555593552d70666897492b9a24cbc9aa4b
        Author: Kevin Earls <kevin@kevinearls.com>
        Date: 2014-11-03T13:44:00Z

        CAMEL-6099 Add chmod option to file producer


        Show
        ASF GitHub Bot added a comment - GitHub user kevinearls opened a pull request: https://github.com/apache/camel/pull/313 CAMEL-6099 Add chmod option to file producer You can merge this pull request into a Git repository by running: $ git pull https://github.com/kevinearls/camel CAMEL-6099 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/camel/pull/313.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 #313 commit 5058b4555593552d70666897492b9a24cbc9aa4b Author: Kevin Earls <kevin@kevinearls.com> Date: 2014-11-03T13:44:00Z CAMEL-6099 Add chmod option to file producer
        Hide
        Willem Jiang added a comment -

        Applied the file producer chmod option into master branch with thanks to Kevin.

        Show
        Willem Jiang added a comment - Applied the file producer chmod option into master branch with thanks to Kevin.
        Hide
        Claus Ibsen added a comment -

        Is the documentation updated at?
        http://camel.apache.org/file2

        Show
        Claus Ibsen added a comment - Is the documentation updated at? http://camel.apache.org/file2
        Hide
        Willem Jiang added a comment -

        Updated the file2 wiki page for this new feature.

        Show
        Willem Jiang added a comment - Updated the file2 wiki page for this new feature.
        Hide
        Claus Ibsen added a comment -

        I got this unit test error on master

        Failed tests:
        FileProducerChmodOptionTest>TestSupport.runBare:58->testInvalidChmod:86 Message was [Failed to create route route4 at: >>> Tofile://target/fileProducerChmodOptionTest/?chmod=abc <<< in route: Route(route4)[[From[direct:writeBadChmod1]] -> [To[file://ta... because of Failed to resolve endpoint: file://target/fileProducerChmodOptionTest/?chmod=abc due to: Could not find a suitable setter for property: chmod as there isn't a setter method with same type: java.lang.String nor type conversion possible: chmod option [abc] is not valid]

        Show
        Claus Ibsen added a comment - I got this unit test error on master Failed tests: FileProducerChmodOptionTest>TestSupport.runBare:58->testInvalidChmod:86 Message was [Failed to create route route4 at: >>> To file://target/fileProducerChmodOptionTest/?chmod=abc <<< in route: Route(route4)[[From [direct:writeBadChmod1] ] -> [To[file://ta... because of Failed to resolve endpoint: file://target/fileProducerChmodOptionTest/?chmod=abc due to: Could not find a suitable setter for property: chmod as there isn't a setter method with same type: java.lang.String nor type conversion possible: chmod option [abc] is not valid]
        Hide
        ASF GitHub Bot added a comment -

        GitHub user sstults opened a pull request:

        https://github.com/apache/camel/pull/320

        CAMEL-6099: Fixing a unit test that expects a certain failure message fo...

        ...r invalid chmod strings

        You can merge this pull request into a Git repository by running:

        $ git pull https://github.com/o19s/camel master

        Alternatively you can review and apply these changes as the patch at:

        https://github.com/apache/camel/pull/320.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 #320


        commit 8ea5cb04fef878657f74b0b2b3050cec3fd350ab
        Author: Scott Stults <sstults@o19s.com>
        Date: 2014-11-07T01:14:41Z

        CAMEL-6099: Fixing a unit test that expects a certain failure message for invalid chmod strings


        Show
        ASF GitHub Bot added a comment - GitHub user sstults opened a pull request: https://github.com/apache/camel/pull/320 CAMEL-6099 : Fixing a unit test that expects a certain failure message fo... ...r invalid chmod strings You can merge this pull request into a Git repository by running: $ git pull https://github.com/o19s/camel master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/camel/pull/320.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 #320 commit 8ea5cb04fef878657f74b0b2b3050cec3fd350ab Author: Scott Stults <sstults@o19s.com> Date: 2014-11-07T01:14:41Z CAMEL-6099 : Fixing a unit test that expects a certain failure message for invalid chmod strings
        Hide
        ASF GitHub Bot added a comment -

        Github user kevinearls closed the pull request at:

        https://github.com/apache/camel/pull/313

        Show
        ASF GitHub Bot added a comment - Github user kevinearls closed the pull request at: https://github.com/apache/camel/pull/313

          People

          • Assignee:
            Willem Jiang
            Reporter:
            Claus Ibsen
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development