You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Dario Sanna (JIRA)" <ji...@apache.org> on 2008/09/19 10:48:52 UTC

[jira] Created: (CAMEL-920) file component consumer.regexPattern does not work as expected (matching is applied not only to file, but also to directory)

file component consumer.regexPattern does not work as expected (matching is applied not only to file, but also to directory)
----------------------------------------------------------------------------------------------------------------------------

                 Key: CAMEL-920
                 URL: https://issues.apache.org/activemq/browse/CAMEL-920
             Project: Apache Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 1.5.0
         Environment: Windows XP, JDK 1.5, Apache Camel 1.5 Snapshot
            Reporter: Dario Sanna


file component consumer.regexPattern does not work as expected

example : from("file://d:/the_input_dir?consumer.regexPattern=.*\.xml$".to(whatever)

(should match only files, that has extention .xml)

the result of the above regexPattern is, that no file will be proccessed, regardless if an existing filename matches the pattern.
FileConsumer.pollFileOrDirectory() applies the regexPattern on the starting directory (the_input_dir) which will not match.






-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CAMEL-920) file component consumer.regexPattern does not work as expected (matching is applied not only to file, but also to directory)

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

Claus Ibsen reassigned CAMEL-920:
---------------------------------

    Assignee: Claus Ibsen

> file component consumer.regexPattern does not work as expected (matching is applied not only to file, but also to directory)
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-920
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-920
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 1.5.0
>         Environment: Windows XP, JDK 1.5, Apache Camel 1.5 Snapshot
>            Reporter: Dario Sanna
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>
> file component consumer.regexPattern does not work as expected
> example : from("file://d:/the_input_dir?consumer.regexPattern=.*\.xml$".to(whatever)
> (should match only files, that has extention .xml)
> the result of the above regexPattern is, that no file will be proccessed, regardless if an existing filename matches the pattern.
> FileConsumer.pollFileOrDirectory() applies the regexPattern on the starting directory (the_input_dir) which will not match.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CAMEL-920) file component consumer.regexPattern does not work as expected (matching is applied not only to file, but also to directory)

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

Claus Ibsen resolved CAMEL-920.
-------------------------------

    Resolution: Fixed

Dario, if you please try the latest snapshot to test if the fix works for you.

> file component consumer.regexPattern does not work as expected (matching is applied not only to file, but also to directory)
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-920
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-920
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 1.5.0
>         Environment: Windows XP, JDK 1.5, Apache Camel 1.5 Snapshot
>            Reporter: Dario Sanna
>            Assignee: Claus Ibsen
>            Priority: Critical
>             Fix For: 1.5.0
>
>
> file component consumer.regexPattern does not work as expected
> example : from("file://d:/the_input_dir?consumer.regexPattern=.*\.xml$".to(whatever)
> (should match only files, that has extention .xml)
> the result of the above regexPattern is, that no file will be proccessed, regardless if an existing filename matches the pattern.
> FileConsumer.pollFileOrDirectory() applies the regexPattern on the starting directory (the_input_dir) which will not match.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAMEL-920) file component consumer.regexPattern does not work as expected (matching is applied not only to file, but also to directory)

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

Claus Ibsen updated CAMEL-920:
------------------------------

    Fix Version/s: 1.5.0
         Priority: Critical  (was: Major)

Will look into it this weekend.

> file component consumer.regexPattern does not work as expected (matching is applied not only to file, but also to directory)
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-920
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-920
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 1.5.0
>         Environment: Windows XP, JDK 1.5, Apache Camel 1.5 Snapshot
>            Reporter: Dario Sanna
>            Assignee: Claus Ibsen
>            Priority: Critical
>             Fix For: 1.5.0
>
>
> file component consumer.regexPattern does not work as expected
> example : from("file://d:/the_input_dir?consumer.regexPattern=.*\.xml$".to(whatever)
> (should match only files, that has extention .xml)
> the result of the above regexPattern is, that no file will be proccessed, regardless if an existing filename matches the pattern.
> FileConsumer.pollFileOrDirectory() applies the regexPattern on the starting directory (the_input_dir) which will not match.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-920) file component consumer.regexPattern does not work as expected (matching is applied not only to file, but also to directory)

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

Claus Ibsen commented on CAMEL-920:
-----------------------------------

TODO: update wiki that directories is not matched against against regexp or exclude names etc.
TODO: Only directories starting with a dot (.) is skipped

> file component consumer.regexPattern does not work as expected (matching is applied not only to file, but also to directory)
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-920
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-920
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 1.5.0
>         Environment: Windows XP, JDK 1.5, Apache Camel 1.5 Snapshot
>            Reporter: Dario Sanna
>            Assignee: Claus Ibsen
>            Priority: Critical
>             Fix For: 1.5.0
>
>
> file component consumer.regexPattern does not work as expected
> example : from("file://d:/the_input_dir?consumer.regexPattern=.*\.xml$".to(whatever)
> (should match only files, that has extention .xml)
> the result of the above regexPattern is, that no file will be proccessed, regardless if an existing filename matches the pattern.
> FileConsumer.pollFileOrDirectory() applies the regexPattern on the starting directory (the_input_dir) which will not match.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-920) file component consumer.regexPattern does not work as expected (matching is applied not only to file, but also to directory)

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

Claus Ibsen commented on CAMEL-920:
-----------------------------------

Well is there any use cases for being able to exclude/regex directories also? I doubt it

I will change the matching to be *files only* except that any directories starting with a "." (dot) will also be skipped.

> file component consumer.regexPattern does not work as expected (matching is applied not only to file, but also to directory)
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-920
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-920
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 1.5.0
>         Environment: Windows XP, JDK 1.5, Apache Camel 1.5 Snapshot
>            Reporter: Dario Sanna
>            Assignee: Claus Ibsen
>            Priority: Critical
>             Fix For: 1.5.0
>
>
> file component consumer.regexPattern does not work as expected
> example : from("file://d:/the_input_dir?consumer.regexPattern=.*\.xml$".to(whatever)
> (should match only files, that has extention .xml)
> the result of the above regexPattern is, that no file will be proccessed, regardless if an existing filename matches the pattern.
> FileConsumer.pollFileOrDirectory() applies the regexPattern on the starting directory (the_input_dir) which will not match.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Work started: (CAMEL-920) file component consumer.regexPattern does not work as expected (matching is applied not only to file, but also to directory)

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

Work on CAMEL-920 started by Claus Ibsen.

> file component consumer.regexPattern does not work as expected (matching is applied not only to file, but also to directory)
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-920
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-920
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 1.5.0
>         Environment: Windows XP, JDK 1.5, Apache Camel 1.5 Snapshot
>            Reporter: Dario Sanna
>            Assignee: Claus Ibsen
>            Priority: Critical
>             Fix For: 1.5.0
>
>
> file component consumer.regexPattern does not work as expected
> example : from("file://d:/the_input_dir?consumer.regexPattern=.*\.xml$".to(whatever)
> (should match only files, that has extention .xml)
> the result of the above regexPattern is, that no file will be proccessed, regardless if an existing filename matches the pattern.
> FileConsumer.pollFileOrDirectory() applies the regexPattern on the starting directory (the_input_dir) which will not match.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-920) file component consumer.regexPattern does not work as expected (matching is applied not only to file, but also to directory)

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

Claus Ibsen commented on CAMEL-920:
-----------------------------------

Remember the FTP component could have similar problem

> file component consumer.regexPattern does not work as expected (matching is applied not only to file, but also to directory)
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-920
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-920
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 1.5.0
>         Environment: Windows XP, JDK 1.5, Apache Camel 1.5 Snapshot
>            Reporter: Dario Sanna
>            Assignee: Claus Ibsen
>            Priority: Critical
>             Fix For: 1.5.0
>
>
> file component consumer.regexPattern does not work as expected
> example : from("file://d:/the_input_dir?consumer.regexPattern=.*\.xml$".to(whatever)
> (should match only files, that has extention .xml)
> the result of the above regexPattern is, that no file will be proccessed, regardless if an existing filename matches the pattern.
> FileConsumer.pollFileOrDirectory() applies the regexPattern on the starting directory (the_input_dir) which will not match.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (CAMEL-920) file component consumer.regexPattern does not work as expected (matching is applied not only to file, but also to directory)

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

Dario Sanna closed CAMEL-920.
-----------------------------


It works, many thanks

> file component consumer.regexPattern does not work as expected (matching is applied not only to file, but also to directory)
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-920
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-920
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 1.5.0
>         Environment: Windows XP, JDK 1.5, Apache Camel 1.5 Snapshot
>            Reporter: Dario Sanna
>            Assignee: Claus Ibsen
>            Priority: Critical
>             Fix For: 1.5.0
>
>
> file component consumer.regexPattern does not work as expected
> example : from("file://d:/the_input_dir?consumer.regexPattern=.*\.xml$".to(whatever)
> (should match only files, that has extention .xml)
> the result of the above regexPattern is, that no file will be proccessed, regardless if an existing filename matches the pattern.
> FileConsumer.pollFileOrDirectory() applies the regexPattern on the starting directory (the_input_dir) which will not match.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.