You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "David J. M. Karlsen (JIRA)" <ji...@apache.org> on 2011/09/21 15:05:08 UTC

[jira] [Created] (CAMEL-4474) file: consumer does not create directory

file: consumer does not create directory
----------------------------------------

                 Key: CAMEL-4474
                 URL: https://issues.apache.org/jira/browse/CAMEL-4474
             Project: Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 2.8.1
         Environment: java 1.6
            Reporter: David J. M. Karlsen


According to http://camel.apache.org/file2.html autoCreate is true by default and should for a consumer create the directory.
{noformat}
autoCreate 	true 	Automatically create missing directories in the file's pathname. For the file consumer, that means creating the starting directory. For the file producer, it means the directory the files should be written to. 
{noformat}
This does not happen and thus a route startup would fail.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CAMEL-4474) file: consumer does not create directory

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-4474.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.9.0
                   2.8.2
                   2.7.4

> file: consumer does not create directory
> ----------------------------------------
>
>                 Key: CAMEL-4474
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4474
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>         Environment: java 1.6
>            Reporter: David J. M. Karlsen
>            Assignee: Taariq Levack
>              Labels: component, consumer, file
>             Fix For: 2.7.4, 2.8.2, 2.9.0
>
>         Attachments: CAMEL-4474_file__consumer_does_not_create_directory.patch, CAMEL-4474_file__consumer_does_not_create_directory1.patch, CAMEL-4474_file__consumer_does_not_create_directory2.patch, Camel4474.java, app-config-context.xml, app-config.properties, test-context.xml
>
>
> According to http://camel.apache.org/file2.html autoCreate is true by default and should for a consumer create the directory.
> {noformat}
> autoCreate 	true 	Automatically create missing directories in the file's pathname. For the file consumer, that means creating the starting directory. For the file producer, it means the directory the files should be written to. 
> {noformat}
> This does not happen and thus a route startup would fail.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4474) file: consumer does not create directory

Posted by "David J. M. Karlsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13109759#comment-13109759 ] 

David J. M. Karlsen commented on CAMEL-4474:
--------------------------------------------

Hah! You are dead-right - but why??

{noformat}
Caused by: org.apache.camel.RuntimeCamelException: java.lang.IllegalArgumentException: Only directory is supported. Endpoint must be configured with a valid starting directory: target/incoming.dir
	at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1145)
	at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:108)
	at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:240)
	at 

{noformat}

Changing it to one w/o dot fixed it - and the error message "Only directory is supported." is misleading.

> file: consumer does not create directory
> ----------------------------------------
>
>                 Key: CAMEL-4474
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4474
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>         Environment: java 1.6
>            Reporter: David J. M. Karlsen
>              Labels: component, consumer, file
>         Attachments: Camel4474.java, app-config-context.xml, app-config.properties, test-context.xml
>
>
> According to http://camel.apache.org/file2.html autoCreate is true by default and should for a consumer create the directory.
> {noformat}
> autoCreate 	true 	Automatically create missing directories in the file's pathname. For the file consumer, that means creating the starting directory. For the file producer, it means the directory the files should be written to. 
> {noformat}
> This does not happen and thus a route startup would fail.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4474) file: consumer does not create directory

Posted by "Taariq Levack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13112417#comment-13112417 ] 

Taariq Levack commented on CAMEL-4474:
--------------------------------------

Claus I don't think there's a problem with his OS or filesystem, isDirectory will return true only if it exists and is a directory.
So it will always throw the exception if the directory does not exist and has a dot.

I have half a patch from doing a new test yesterday, so if David hasn't got a patch in mind I can finish it the weekend when I get a gap.

> file: consumer does not create directory
> ----------------------------------------
>
>                 Key: CAMEL-4474
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4474
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>         Environment: java 1.6
>            Reporter: David J. M. Karlsen
>              Labels: component, consumer, file
>         Attachments: Camel4474.java, app-config-context.xml, app-config.properties, test-context.xml
>
>
> According to http://camel.apache.org/file2.html autoCreate is true by default and should for a consumer create the directory.
> {noformat}
> autoCreate 	true 	Automatically create missing directories in the file's pathname. For the file consumer, that means creating the starting directory. For the file producer, it means the directory the files should be written to. 
> {noformat}
> This does not happen and thus a route startup would fail.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4474) file: consumer does not create directory

Posted by "Taariq Levack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13109534#comment-13109534 ] 

Taariq Levack commented on CAMEL-4474:
--------------------------------------

David can you please post a test for this?
There are tests[1] for this code so maybe you missed something with permissions etc.

[1] https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerAutoCreateDirectoryTest.java


> file: consumer does not create directory
> ----------------------------------------
>
>                 Key: CAMEL-4474
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4474
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>         Environment: java 1.6
>            Reporter: David J. M. Karlsen
>              Labels: component, consumer, file
>
> According to http://camel.apache.org/file2.html autoCreate is true by default and should for a consumer create the directory.
> {noformat}
> autoCreate 	true 	Automatically create missing directories in the file's pathname. For the file consumer, that means creating the starting directory. For the file producer, it means the directory the files should be written to. 
> {noformat}
> This does not happen and thus a route startup would fail.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4474) file: consumer does not create directory

Posted by "Taariq Levack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Taariq Levack updated CAMEL-4474:
---------------------------------

    Attachment: CAMEL-4474_file__consumer_does_not_create_directory1.patch

> file: consumer does not create directory
> ----------------------------------------
>
>                 Key: CAMEL-4474
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4474
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>         Environment: java 1.6
>            Reporter: David J. M. Karlsen
>              Labels: component, consumer, file
>         Attachments: CAMEL-4474_file__consumer_does_not_create_directory.patch, CAMEL-4474_file__consumer_does_not_create_directory1.patch, Camel4474.java, app-config-context.xml, app-config.properties, test-context.xml
>
>
> According to http://camel.apache.org/file2.html autoCreate is true by default and should for a consumer create the directory.
> {noformat}
> autoCreate 	true 	Automatically create missing directories in the file's pathname. For the file consumer, that means creating the starting directory. For the file producer, it means the directory the files should be written to. 
> {noformat}
> This does not happen and thus a route startup would fail.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4474) file: consumer does not create directory

Posted by "Taariq Levack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13112328#comment-13112328 ] 

Taariq Levack commented on CAMEL-4474:
--------------------------------------

Great.

The reason is stated in the comments in FileEndpoint;
// we assume its a file if the name has a dot in it (eg foo.txt)

Since a directory can have a dot, like .m2, .camel etc, we should perhaps always assume it's a directory, but that doesn't sound right either.
Feel free to submit a patch to improve the code or even documentation to make it clearer.

> file: consumer does not create directory
> ----------------------------------------
>
>                 Key: CAMEL-4474
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4474
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>         Environment: java 1.6
>            Reporter: David J. M. Karlsen
>              Labels: component, consumer, file
>         Attachments: Camel4474.java, app-config-context.xml, app-config.properties, test-context.xml
>
>
> According to http://camel.apache.org/file2.html autoCreate is true by default and should for a consumer create the directory.
> {noformat}
> autoCreate 	true 	Automatically create missing directories in the file's pathname. For the file consumer, that means creating the starting directory. For the file producer, it means the directory the files should be written to. 
> {noformat}
> This does not happen and thus a route startup would fail.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (CAMEL-4474) file: consumer does not create directory

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-4474:
----------------------------------

    Assignee: Claus Ibsen

> file: consumer does not create directory
> ----------------------------------------
>
>                 Key: CAMEL-4474
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4474
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>         Environment: java 1.6
>            Reporter: David J. M. Karlsen
>            Assignee: Claus Ibsen
>              Labels: component, consumer, file
>         Attachments: CAMEL-4474_file__consumer_does_not_create_directory.patch, CAMEL-4474_file__consumer_does_not_create_directory1.patch, CAMEL-4474_file__consumer_does_not_create_directory2.patch, Camel4474.java, app-config-context.xml, app-config.properties, test-context.xml
>
>
> According to http://camel.apache.org/file2.html autoCreate is true by default and should for a consumer create the directory.
> {noformat}
> autoCreate 	true 	Automatically create missing directories in the file's pathname. For the file consumer, that means creating the starting directory. For the file producer, it means the directory the files should be written to. 
> {noformat}
> This does not happen and thus a route startup would fail.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4474) file: consumer does not create directory

Posted by "Taariq Levack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Taariq Levack updated CAMEL-4474:
---------------------------------

    Attachment: CAMEL-4474_file__consumer_does_not_create_directory.patch

Doesn't seem like there's more to do on this, patch attached.

> file: consumer does not create directory
> ----------------------------------------
>
>                 Key: CAMEL-4474
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4474
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>         Environment: java 1.6
>            Reporter: David J. M. Karlsen
>              Labels: component, consumer, file
>         Attachments: CAMEL-4474_file__consumer_does_not_create_directory.patch, Camel4474.java, app-config-context.xml, app-config.properties, test-context.xml
>
>
> According to http://camel.apache.org/file2.html autoCreate is true by default and should for a consumer create the directory.
> {noformat}
> autoCreate 	true 	Automatically create missing directories in the file's pathname. For the file consumer, that means creating the starting directory. For the file producer, it means the directory the files should be written to. 
> {noformat}
> This does not happen and thus a route startup would fail.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4474) file: consumer does not create directory

Posted by "David J. M. Karlsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13109617#comment-13109617 ] 

David J. M. Karlsen commented on CAMEL-4474:
--------------------------------------------

I will have to test tomorrow at work. But I do not see this requirement documented an place: http://camel.apache.org/file2.html .
It's also not a problem as long as the directory in fact exists - so I doubt that is the case - but I'll double check tomorrow.

> file: consumer does not create directory
> ----------------------------------------
>
>                 Key: CAMEL-4474
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4474
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>         Environment: java 1.6
>            Reporter: David J. M. Karlsen
>              Labels: component, consumer, file
>         Attachments: Camel4474.java, app-config-context.xml, app-config.properties, test-context.xml
>
>
> According to http://camel.apache.org/file2.html autoCreate is true by default and should for a consumer create the directory.
> {noformat}
> autoCreate 	true 	Automatically create missing directories in the file's pathname. For the file consumer, that means creating the starting directory. For the file producer, it means the directory the files should be written to. 
> {noformat}
> This does not happen and thus a route startup would fail.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4474) file: consumer does not create directory

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13112381#comment-13112381 ] 

Claus Ibsen commented on CAMEL-4474:
------------------------------------

That dot thingy is a left over from the 1.x days as you could configure a fileName and/or a directory. In 2.x it must be a starting directory. And you can use the new fileName option to pin point a specific file.

David there is something wrong with your system as we use the File API to check if its a directory first
{code}
boolean isDirectory = file.isDirectory();
        if (!isDirectory && file.getName().contains(".")) {
            throw new IllegalArgumentException("Only directory is supported. Endpoint must be configured with a valid starting directory: " + file);
        }
{code}

So what OS and file system are you using?

> file: consumer does not create directory
> ----------------------------------------
>
>                 Key: CAMEL-4474
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4474
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>         Environment: java 1.6
>            Reporter: David J. M. Karlsen
>              Labels: component, consumer, file
>         Attachments: Camel4474.java, app-config-context.xml, app-config.properties, test-context.xml
>
>
> According to http://camel.apache.org/file2.html autoCreate is true by default and should for a consumer create the directory.
> {noformat}
> autoCreate 	true 	Automatically create missing directories in the file's pathname. For the file consumer, that means creating the starting directory. For the file producer, it means the directory the files should be written to. 
> {noformat}
> This does not happen and thus a route startup would fail.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CAMEL-4474) file: consumer does not create directory

Posted by "Taariq Levack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13109534#comment-13109534 ] 

Taariq Levack edited comment on CAMEL-4474 at 9/21/11 2:40 PM:
---------------------------------------------------------------

David can you please post a test for this?
There are tests[1] for this code so maybe you missed something with permissions etc, or of course maybe these tests miss something.

[1] https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerAutoCreateDirectoryTest.java

      was (Author: taariql):
    David can you please post a test for this?
There are tests[1] for this code so maybe you missed something with permissions etc.

[1] https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerAutoCreateDirectoryTest.java

  
> file: consumer does not create directory
> ----------------------------------------
>
>                 Key: CAMEL-4474
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4474
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>         Environment: java 1.6
>            Reporter: David J. M. Karlsen
>              Labels: component, consumer, file
>
> According to http://camel.apache.org/file2.html autoCreate is true by default and should for a consumer create the directory.
> {noformat}
> autoCreate 	true 	Automatically create missing directories in the file's pathname. For the file consumer, that means creating the starting directory. For the file producer, it means the directory the files should be written to. 
> {noformat}
> This does not happen and thus a route startup would fail.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4474) file: consumer does not create directory

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13112553#comment-13112553 ] 

Claus Ibsen commented on CAMEL-4474:
------------------------------------

Ah Taarig yeah of course :) 

> file: consumer does not create directory
> ----------------------------------------
>
>                 Key: CAMEL-4474
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4474
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>         Environment: java 1.6
>            Reporter: David J. M. Karlsen
>              Labels: component, consumer, file
>         Attachments: Camel4474.java, app-config-context.xml, app-config.properties, test-context.xml
>
>
> According to http://camel.apache.org/file2.html autoCreate is true by default and should for a consumer create the directory.
> {noformat}
> autoCreate 	true 	Automatically create missing directories in the file's pathname. For the file consumer, that means creating the starting directory. For the file producer, it means the directory the files should be written to. 
> {noformat}
> This does not happen and thus a route startup would fail.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (CAMEL-4474) file: consumer does not create directory

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-4474:
----------------------------------

    Assignee: Taariq Levack  (was: Claus Ibsen)

Taariq thanks of the patch. I have granter your JIRA account karma to assign tickets, as you seem to contribute a fair number of patches to Camel. Soo keep it up.

> file: consumer does not create directory
> ----------------------------------------
>
>                 Key: CAMEL-4474
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4474
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>         Environment: java 1.6
>            Reporter: David J. M. Karlsen
>            Assignee: Taariq Levack
>              Labels: component, consumer, file
>         Attachments: CAMEL-4474_file__consumer_does_not_create_directory.patch, CAMEL-4474_file__consumer_does_not_create_directory1.patch, CAMEL-4474_file__consumer_does_not_create_directory2.patch, Camel4474.java, app-config-context.xml, app-config.properties, test-context.xml
>
>
> According to http://camel.apache.org/file2.html autoCreate is true by default and should for a consumer create the directory.
> {noformat}
> autoCreate 	true 	Automatically create missing directories in the file's pathname. For the file consumer, that means creating the starting directory. For the file producer, it means the directory the files should be written to. 
> {noformat}
> This does not happen and thus a route startup would fail.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4474) file: consumer does not create directory

Posted by "Taariq Levack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13109600#comment-13109600 ] 

Taariq Levack commented on CAMEL-4474:
--------------------------------------

You're using a dot in the directory name which is not allowed, is this the error you're getting?

IllegalArgumentException("Only directory is supported. Endpoint must be configured with a valid starting directory: " + file);

> file: consumer does not create directory
> ----------------------------------------
>
>                 Key: CAMEL-4474
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4474
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>         Environment: java 1.6
>            Reporter: David J. M. Karlsen
>              Labels: component, consumer, file
>         Attachments: Camel4474.java, app-config-context.xml, app-config.properties, test-context.xml
>
>
> According to http://camel.apache.org/file2.html autoCreate is true by default and should for a consumer create the directory.
> {noformat}
> autoCreate 	true 	Automatically create missing directories in the file's pathname. For the file consumer, that means creating the starting directory. For the file producer, it means the directory the files should be written to. 
> {noformat}
> This does not happen and thus a route startup would fail.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4474) file: consumer does not create directory

Posted by "David J. M. Karlsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David J. M. Karlsen updated CAMEL-4474:
---------------------------------------

    Attachment: test-context.xml
                app-config-context.xml
                Camel4474.java
                app-config.properties

See attached test - you can toggle the mkdir flag to make it pass or fail.

> file: consumer does not create directory
> ----------------------------------------
>
>                 Key: CAMEL-4474
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4474
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>         Environment: java 1.6
>            Reporter: David J. M. Karlsen
>              Labels: component, consumer, file
>         Attachments: Camel4474.java, app-config-context.xml, app-config.properties, test-context.xml
>
>
> According to http://camel.apache.org/file2.html autoCreate is true by default and should for a consumer create the directory.
> {noformat}
> autoCreate 	true 	Automatically create missing directories in the file's pathname. For the file consumer, that means creating the starting directory. For the file producer, it means the directory the files should be written to. 
> {noformat}
> This does not happen and thus a route startup would fail.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4474) file: consumer does not create directory

Posted by "Taariq Levack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Taariq Levack updated CAMEL-4474:
---------------------------------

    Attachment: CAMEL-4474_file__consumer_does_not_create_directory2.patch

Fixed a comment in the test code. Please see the last attachment, CAMEL-4474_file__consumer_does_not_create_directory2.patch

> file: consumer does not create directory
> ----------------------------------------
>
>                 Key: CAMEL-4474
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4474
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.1
>         Environment: java 1.6
>            Reporter: David J. M. Karlsen
>              Labels: component, consumer, file
>         Attachments: CAMEL-4474_file__consumer_does_not_create_directory.patch, CAMEL-4474_file__consumer_does_not_create_directory1.patch, CAMEL-4474_file__consumer_does_not_create_directory2.patch, Camel4474.java, app-config-context.xml, app-config.properties, test-context.xml
>
>
> According to http://camel.apache.org/file2.html autoCreate is true by default and should for a consumer create the directory.
> {noformat}
> autoCreate 	true 	Automatically create missing directories in the file's pathname. For the file consumer, that means creating the starting directory. For the file producer, it means the directory the files should be written to. 
> {noformat}
> This does not happen and thus a route startup would fail.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira