[jira] [Resolved] (CAMEL-13395) Threadsafe camel-api-component-maven-plugin

2019-04-09 Thread Andrea Cosentino (JIRA)


 [ 
https://issues.apache.org/jira/browse/CAMEL-13395?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrea Cosentino resolved CAMEL-13395.
--
Resolution: Fixed

> Threadsafe camel-api-component-maven-plugin 
> 
>
> Key: CAMEL-13395
> URL: https://issues.apache.org/jira/browse/CAMEL-13395
> Project: Camel
>  Issue Type: Improvement
>  Components: tooling
>Reporter: Marc Carter
>Assignee: Andrea Cosentino
>Priority: Minor
> Fix For: 3.0.0, 3.0.0-M3
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> In plugin {{camel-api-component-maven-plugin}}, {{ApiComponentGeneratorMojo}} 
> claims it is threadsafe however its superclass is clearly using {{static}} 
> fields (AbstractGeneratorMojo.java:59) and it fails very easily on multi-core 
> boxes
> The following fails consistently on a multi-core host:
> {code:bash}
> # Run once to complete all compilations
> ./mvnw install -Pfastinstall -pl 
> :camel-google-calendar,:camel-box,:camel-braintree,:camel-api-component-maven-plugin
> # Run again but using threads, this largely guarantees the plugin is run 
> concurrently
> ./mvnw -TC1 install -Pfastinstall -pl 
> :camel-google-calendar,:camel-box,:camel-braintree,:camel-api-component-maven-plugin
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Assigned] (CAMEL-13395) Threadsafe camel-api-component-maven-plugin

2019-04-09 Thread Andrea Cosentino (JIRA)


 [ 
https://issues.apache.org/jira/browse/CAMEL-13395?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrea Cosentino reassigned CAMEL-13395:


Assignee: Andrea Cosentino

> Threadsafe camel-api-component-maven-plugin 
> 
>
> Key: CAMEL-13395
> URL: https://issues.apache.org/jira/browse/CAMEL-13395
> Project: Camel
>  Issue Type: Improvement
>  Components: tooling
>Reporter: Marc Carter
>Assignee: Andrea Cosentino
>Priority: Minor
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> In plugin {{camel-api-component-maven-plugin}}, {{ApiComponentGeneratorMojo}} 
> claims it is threadsafe however its superclass is clearly using {{static}} 
> fields (AbstractGeneratorMojo.java:59) and it fails very easily on multi-core 
> boxes
> The following fails consistently on a multi-core host:
> {code:bash}
> # Run once to complete all compilations
> ./mvnw install -Pfastinstall -pl 
> :camel-google-calendar,:camel-box,:camel-braintree,:camel-api-component-maven-plugin
> # Run again but using threads, this largely guarantees the plugin is run 
> concurrently
> ./mvnw -TC1 install -Pfastinstall -pl 
> :camel-google-calendar,:camel-box,:camel-braintree,:camel-api-component-maven-plugin
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Work logged] (CAMEL-13395) Threadsafe camel-api-component-maven-plugin

2019-04-09 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/CAMEL-13395?focusedWorklogId=225000=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-225000
 ]

ASF GitHub Bot logged work on CAMEL-13395:
--

Author: ASF GitHub Bot
Created on: 09/Apr/19 13:48
Start Date: 09/Apr/19 13:48
Worklog Time Spent: 10m 
  Work Description: oscerd commented on pull request #2860: CAMEL-13395 
Threadsafe camel-api-component-maven-plugin 
URL: https://github.com/apache/camel/pull/2860
 
 
   
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 225000)
Time Spent: 20m  (was: 10m)

> Threadsafe camel-api-component-maven-plugin 
> 
>
> Key: CAMEL-13395
> URL: https://issues.apache.org/jira/browse/CAMEL-13395
> Project: Camel
>  Issue Type: Improvement
>  Components: tooling
>Reporter: Marc Carter
>Priority: Minor
> Fix For: 3.0.0, 3.0.0-M3
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> In plugin {{camel-api-component-maven-plugin}}, {{ApiComponentGeneratorMojo}} 
> claims it is threadsafe however its superclass is clearly using {{static}} 
> fields (AbstractGeneratorMojo.java:59) and it fails very easily on multi-core 
> boxes
> The following fails consistently on a multi-core host:
> {code:bash}
> # Run once to complete all compilations
> ./mvnw install -Pfastinstall -pl 
> :camel-google-calendar,:camel-box,:camel-braintree,:camel-api-component-maven-plugin
> # Run again but using threads, this largely guarantees the plugin is run 
> concurrently
> ./mvnw -TC1 install -Pfastinstall -pl 
> :camel-google-calendar,:camel-box,:camel-braintree,:camel-api-component-maven-plugin
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (CAMEL-13395) Threadsafe camel-api-component-maven-plugin

2019-04-09 Thread Andrea Cosentino (JIRA)


 [ 
https://issues.apache.org/jira/browse/CAMEL-13395?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrea Cosentino updated CAMEL-13395:
-
Fix Version/s: 3.0.0-M3
   3.0.0

> Threadsafe camel-api-component-maven-plugin 
> 
>
> Key: CAMEL-13395
> URL: https://issues.apache.org/jira/browse/CAMEL-13395
> Project: Camel
>  Issue Type: Improvement
>  Components: tooling
>Reporter: Marc Carter
>Assignee: Andrea Cosentino
>Priority: Minor
> Fix For: 3.0.0, 3.0.0-M3
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> In plugin {{camel-api-component-maven-plugin}}, {{ApiComponentGeneratorMojo}} 
> claims it is threadsafe however its superclass is clearly using {{static}} 
> fields (AbstractGeneratorMojo.java:59) and it fails very easily on multi-core 
> boxes
> The following fails consistently on a multi-core host:
> {code:bash}
> # Run once to complete all compilations
> ./mvnw install -Pfastinstall -pl 
> :camel-google-calendar,:camel-box,:camel-braintree,:camel-api-component-maven-plugin
> # Run again but using threads, this largely guarantees the plugin is run 
> concurrently
> ./mvnw -TC1 install -Pfastinstall -pl 
> :camel-google-calendar,:camel-box,:camel-braintree,:camel-api-component-maven-plugin
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (CAMEL-13402) Update to Californium 2.0.x and support DTLS

2019-04-09 Thread Colm O hEigeartaigh (JIRA)
Colm O hEigeartaigh created CAMEL-13402:
---

 Summary: Update to Californium 2.0.x and support DTLS
 Key: CAMEL-13402
 URL: https://issues.apache.org/jira/browse/CAMEL-13402
 Project: Camel
  Issue Type: Improvement
  Components: camel-coap
Reporter: Colm O hEigeartaigh
Assignee: Colm O hEigeartaigh
 Fix For: 3.0.0


This task is to update to Californium 2.0.x and support DTLS in the camel-coap 
component. Currently we only support plain UDP and not UDP / TLS.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Work logged] (CAMEL-12665) Create a Camel-Pulsar component

2019-04-09 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/CAMEL-12665?focusedWorklogId=224939=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-224939
 ]

ASF GitHub Bot logged work on CAMEL-12665:
--

Author: ASF GitHub Bot
Created on: 09/Apr/19 12:17
Start Date: 09/Apr/19 12:17
Worklog Time Spent: 10m 
  Work Description: foamdino commented on pull request #2866: CAMEL-12665 - 
Apache Pulsar integration via component
URL: https://github.com/apache/camel/pull/2866
 
 
   Similar to the other Pull Request however based on master rather than 2.x
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 224939)
Time Spent: 40m  (was: 0.5h)

> Create a Camel-Pulsar component
> ---
>
> Key: CAMEL-12665
> URL: https://issues.apache.org/jira/browse/CAMEL-12665
> Project: Camel
>  Issue Type: New Feature
>Reporter: Andrea Cosentino
>Assignee: Andrea Cosentino
>Priority: Major
> Fix For: 3.0.0
>
>  Time Spent: 40m
>  Remaining Estimate: 0h
>
> [https://pulsar.incubator.apache.org/docs/latest/clients/Java/]
> https://pulsar.incubator.apache.org/



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CAMEL-13401) Create a webhook meta-component

2019-04-09 Thread Willem Jiang (JIRA)


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

Willem Jiang commented on CAMEL-13401:
--

[~nferraro] I just have a quick question for it.  How do we store the metadata 
information?
We can use webhook to track the change of metadata, but what if there is no 
instance of telegram endpoint,  is there still a webhook could help us handle 
to change of the telegram endpoint metadata.

> Create a webhook meta-component
> ---
>
> Key: CAMEL-13401
> URL: https://issues.apache.org/jira/browse/CAMEL-13401
> Project: Camel
>  Issue Type: New Feature
>  Components: camel-core
>Reporter: Nicola Ferraro
>Assignee: Nicola Ferraro
>Priority: Major
> Fix For: 3.0.0
>
>
> The intention is to create a meta-component that allows other components to 
> define how they can configure themselves to create push-based consumers by 
> remotely configuring a webhook.
> The way it's used is similar to the master component.
>  
> E.g.
> The following route starts from a Telegram polling consumer:
> {code:java}
> from("telegram:bots/token")
>   .to("log:info"){code}
>  
> By prepending the _webhook_ uri prefix, we literally _prepend a webhook 
> listener_ to it:
> {code:java}
> from("webhook:telegram:bots/token")
>   .to("log:info"){code}
>  
> The role of the webhook meta-component is of:
>  * Exposing one or more endpoints using the rest consumer factory
>  * Running the delegate endpoint in webhook mode (each component defines the 
> specific rules)
>  * Registering the webhook at the webhook provider site (specific per 
> component, external URL configurable)
>  * Unregistering the webhook at the webhook provider site when it's no more 
> necessary (specific per component)
> So, the meta-component sets up the infrastructure and orchestrates the 
> workflow.
>  
> Registration/deregistration should be configurable:
>  * In standalone mode, the registration is done at route startup, the 
> deregistration is done at route shutdown
>  * In Camel K mode, automatic registration is disabled by default, because 
> the deployment can be scale up/down (especially in Knative mode, where this 
> happens automatically):
>  ** Camel K will setup a webhook subscription resource that takes care of 
> externally registering/deregistering the webhook when the integration is 
> created/edited/deleted (will use the webhook component API for this)
>  
> With this meta-component, in Camel K + Knative mode, we can create 
> integrations from telegram, slack, github, twitter, dropbox,  that can 
> scale down to 0 when not used.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (CAMEL-13401) Create a webhook meta-component

2019-04-09 Thread Nicola Ferraro (JIRA)


 [ 
https://issues.apache.org/jira/browse/CAMEL-13401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicola Ferraro updated CAMEL-13401:
---
Description: 
The intention is to create a meta-component that allows other components to 
define how they can configure themselves to create push-based consumers by 
remotely configuring a webhook.

The way it's used is similar to the master component.

 

E.g.

The following route starts from a Telegram polling consumer:
{code:java}
from("telegram:bots/token")
  .to("log:info"){code}
 

By prepending the _webhook_ uri prefix, we literally _prepend a webhook 
listener_ to it:
{code:java}
from("webhook:telegram:bots/token")
  .to("log:info"){code}
 

The role of the webhook meta-component is of:
 * Exposing one or more endpoints using the rest consumer factory
 * Running the delegate endpoint in webhook mode (each component defines the 
specific rules)
 * Registering the webhook at the webhook provider site (specific per 
component, external URL configurable)
 * Unregistering the webhook at the webhook provider site when it's no more 
necessary (specific per component)

So, the meta-component sets up the infrastructure and orchestrates the workflow.

 

Registration/deregistration should be configurable:
 * In standalone mode, the registration is done at route startup, the 
deregistration is done at route shutdown
 * In Camel K mode, automatic registration is disabled by default, because the 
deployment can be scale up/down (especially in Knative mode, where this happens 
automatically):
 ** Camel K will setup a webhook subscription resource that takes care of 
externally registering/deregistering the webhook when the integration is 
created/edited/deleted (will use the webhook component API for this)

 

With this meta-component, in Camel K + Knative mode, we can create integrations 
from telegram, slack, github, twitter, dropbox,  that can scale down to 0 
when not used.

> Create a webhook meta-component
> ---
>
> Key: CAMEL-13401
> URL: https://issues.apache.org/jira/browse/CAMEL-13401
> Project: Camel
>  Issue Type: New Feature
>  Components: camel-core
>Reporter: Nicola Ferraro
>Assignee: Nicola Ferraro
>Priority: Major
> Fix For: 3.0.0
>
>
> The intention is to create a meta-component that allows other components to 
> define how they can configure themselves to create push-based consumers by 
> remotely configuring a webhook.
> The way it's used is similar to the master component.
>  
> E.g.
> The following route starts from a Telegram polling consumer:
> {code:java}
> from("telegram:bots/token")
>   .to("log:info"){code}
>  
> By prepending the _webhook_ uri prefix, we literally _prepend a webhook 
> listener_ to it:
> {code:java}
> from("webhook:telegram:bots/token")
>   .to("log:info"){code}
>  
> The role of the webhook meta-component is of:
>  * Exposing one or more endpoints using the rest consumer factory
>  * Running the delegate endpoint in webhook mode (each component defines the 
> specific rules)
>  * Registering the webhook at the webhook provider site (specific per 
> component, external URL configurable)
>  * Unregistering the webhook at the webhook provider site when it's no more 
> necessary (specific per component)
> So, the meta-component sets up the infrastructure and orchestrates the 
> workflow.
>  
> Registration/deregistration should be configurable:
>  * In standalone mode, the registration is done at route startup, the 
> deregistration is done at route shutdown
>  * In Camel K mode, automatic registration is disabled by default, because 
> the deployment can be scale up/down (especially in Knative mode, where this 
> happens automatically):
>  ** Camel K will setup a webhook subscription resource that takes care of 
> externally registering/deregistering the webhook when the integration is 
> created/edited/deleted (will use the webhook component API for this)
>  
> With this meta-component, in Camel K + Knative mode, we can create 
> integrations from telegram, slack, github, twitter, dropbox,  that can 
> scale down to 0 when not used.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (CAMEL-13401) Create a webhook meta-component

2019-04-09 Thread Nicola Ferraro (JIRA)
Nicola Ferraro created CAMEL-13401:
--

 Summary: Create a webhook meta-component
 Key: CAMEL-13401
 URL: https://issues.apache.org/jira/browse/CAMEL-13401
 Project: Camel
  Issue Type: New Feature
  Components: camel-core
Reporter: Nicola Ferraro
Assignee: Nicola Ferraro
 Fix For: 3.0.0






--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Reopened] (CAMEL-13400) Camel FTP Cannot list directory with 'File not found' prepending additional '/' in front of directory automatically

2019-04-09 Thread Andrea Cosentino (JIRA)


 [ 
https://issues.apache.org/jira/browse/CAMEL-13400?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrea Cosentino reopened CAMEL-13400:
--

> Camel FTP Cannot list directory with 'File not found' prepending additional 
> '/' in front of directory automatically
> ---
>
> Key: CAMEL-13400
> URL: https://issues.apache.org/jira/browse/CAMEL-13400
> Project: Camel
>  Issue Type: Bug
>  Components: camel-ftp
>Affects Versions: 3.0.0-M1
>Reporter: Vidhya Sagar Jeevendran
>Priority: Major
>
> I need to poll files form a dynamic folder based on a specific date, so I 
> have provided the parent directory in endpoint URI, enabled recursive flag 
> and add filterDirectory accordingly. But It is not able to poll from the 
> directory, it says file not found for that directory. It is trying with an 
> addition '/' while listing {{listFor(/)}}
> *Endpoint URI*
> {{sftp://:22051?connectTimeout=9=true=%24%7Bfile%3Aname%7D+starts+with+%27%24%7Bbean%3AdateofExchange%3Fmethod%3DforLoc%28%22MY%22%29%7D%27=true=.*IMG=C%3A%5Cprogram+files%5Cascertain%5CI2R-MystiQ-Engine%5Cknown_hosts=true=xx=password=3=true=quartz2=0+0%2F5+*+*+*+%3F=false=_ftpuser
>  }}
> *TRACE LOG*
> {{TRACE 2019-04-05T15:25:03,389 
> [org.apache.camel.component.file.remote.SftpConsumer] - Polling directory: 
> TRACE 2019-04-05T15:25:03,389 
> [org.apache.camel.component.file.remote.SftpOperations] - listFiles() TRACE 
> 2019-04-05T15:25:03,712 [org.apache.camel.component.file.remote.SftpConsumer] 
> - Found 12 in directory: TRACE 2019-04-05T15:25:03,712 
> [org.apache.camel.component.file.remote.SftpConsumer] - SftpFile[fileName=., 
> longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 05:27 ., dir=true] TRACE 
> 2019-04-05T15:25:03,712 [org.apache.camel.component.file.remote.SftpConsumer] 
> - File did not match. Will skip this file: RemoteFile[.] TRACE 
> 2019-04-05T15:25:03,712 [org.apache.camel.component.file.remote.SftpConsumer] 
> - SftpFile[fileName=.., longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 03:04 .., dir=true] TRACE 2019-04-05T15:25:03,712 
> [org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
> Will skip this file: RemoteFile[..] TRACE 2019-04-05T15:25:03,728 
> [org.apache.camel.component.file.remote.SftpConsumer] - 
> SftpFile[fileName=20170526, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 02:16 20170526, dir=true] TRACE 2019-04-05T15:25:04,413 
> [org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
> Will skip this file: RemoteFile[20170526] TRACE 2019-04-05T15:25:04,413 
> [org.apache.camel.component.file.remote.SftpConsumer] - 
> SftpFile[fileName=20181119, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 05:24 20181119, dir=true] TRACE 2019-04-05T15:25:05,117 
> [org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
> Will skip this file: RemoteFile[20181119] TRACE 2019-04-05T15:25:05,117 
> [org.apache.camel.component.file.remote.SftpConsumer] - 
> SftpFile[fileName=20181121, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 05:25 20181121, dir=true] TRACE 2019-04-05T15:25:05,837 
> [org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
> Will skip this file: RemoteFile[20181121] TRACE 2019-04-05T15:25:05,840 
> [org.apache.camel.component.file.remote.SftpConsumer] - 
> SftpFile[fileName=20181122, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 05:26 20181122, dir=true] TRACE 2019-04-05T15:25:06,561 
> [org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
> Will skip this file: RemoteFile[20181122] TRACE 2019-04-05T15:25:06,563 
> [org.apache.camel.component.file.remote.SftpConsumer] - 
> SftpFile[fileName=20181123, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 05:27 20181123, dir=true] TRACE 2019-04-05T15:25:07,258 
> [org.apache.camel.component.file.remote.SftpConsumer] - Polling sub 
> directory: /20181123 from: 
> sftp://:22051?connectTimeout=9=true=%24%7Bfile%3Aname%7D+starts+with+%27%24%7Bbean%3AdateofExchange%3Fmethod%3DforLoc%28%22MY%22%29%7D%27=true=.*IMG=C%3A%5Cprogram+files%5Cascertain%5CI2R-MystiQ-Engine%5Cknown_hosts=true=xx=password=3=true=quartz2=0+0%2F5+*+*+*+%3F=false=_ftpuser
>  TRACE 2019-04-05T15:25:07,260 
> [org.apache.camel.component.file.remote.SftpConsumer] - doPollDirectory from 
> absolutePath: /20181123, dirName: 20181123 TRACE 2019-04-05T15:25:07,263 
> [org.apache.camel.component.file.remote.SftpConsumer] - Polling directory: 
> /20181123 TRACE 2019-04-05T15:25:07,265 
> [org.apache.camel.component.file.remote.SftpOperations] - 
> listFiles(/20181123) DEBUG 2019-04-05T15:25:07,281 
> [org.apache.camel.component.file.remote.SftpConsumer] - Caught exception 
> 

[jira] [Commented] (CAMEL-13400) Camel FTP Cannot list directory with 'File not found' prepending additional '/' in front of directory automatically

2019-04-09 Thread Andrea Cosentino (JIRA)


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

Andrea Cosentino commented on CAMEL-13400:
--

Reopened.

> Camel FTP Cannot list directory with 'File not found' prepending additional 
> '/' in front of directory automatically
> ---
>
> Key: CAMEL-13400
> URL: https://issues.apache.org/jira/browse/CAMEL-13400
> Project: Camel
>  Issue Type: Bug
>  Components: camel-ftp
>Affects Versions: 3.0.0-M1
>Reporter: Vidhya Sagar Jeevendran
>Priority: Major
>
> I need to poll files form a dynamic folder based on a specific date, so I 
> have provided the parent directory in endpoint URI, enabled recursive flag 
> and add filterDirectory accordingly. But It is not able to poll from the 
> directory, it says file not found for that directory. It is trying with an 
> addition '/' while listing {{listFor(/)}}
> *Endpoint URI*
> {{sftp://:22051?connectTimeout=9=true=%24%7Bfile%3Aname%7D+starts+with+%27%24%7Bbean%3AdateofExchange%3Fmethod%3DforLoc%28%22MY%22%29%7D%27=true=.*IMG=C%3A%5Cprogram+files%5Cascertain%5CI2R-MystiQ-Engine%5Cknown_hosts=true=xx=password=3=true=quartz2=0+0%2F5+*+*+*+%3F=false=_ftpuser
>  }}
> *TRACE LOG*
> {{TRACE 2019-04-05T15:25:03,389 
> [org.apache.camel.component.file.remote.SftpConsumer] - Polling directory: 
> TRACE 2019-04-05T15:25:03,389 
> [org.apache.camel.component.file.remote.SftpOperations] - listFiles() TRACE 
> 2019-04-05T15:25:03,712 [org.apache.camel.component.file.remote.SftpConsumer] 
> - Found 12 in directory: TRACE 2019-04-05T15:25:03,712 
> [org.apache.camel.component.file.remote.SftpConsumer] - SftpFile[fileName=., 
> longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 05:27 ., dir=true] TRACE 
> 2019-04-05T15:25:03,712 [org.apache.camel.component.file.remote.SftpConsumer] 
> - File did not match. Will skip this file: RemoteFile[.] TRACE 
> 2019-04-05T15:25:03,712 [org.apache.camel.component.file.remote.SftpConsumer] 
> - SftpFile[fileName=.., longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 03:04 .., dir=true] TRACE 2019-04-05T15:25:03,712 
> [org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
> Will skip this file: RemoteFile[..] TRACE 2019-04-05T15:25:03,728 
> [org.apache.camel.component.file.remote.SftpConsumer] - 
> SftpFile[fileName=20170526, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 02:16 20170526, dir=true] TRACE 2019-04-05T15:25:04,413 
> [org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
> Will skip this file: RemoteFile[20170526] TRACE 2019-04-05T15:25:04,413 
> [org.apache.camel.component.file.remote.SftpConsumer] - 
> SftpFile[fileName=20181119, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 05:24 20181119, dir=true] TRACE 2019-04-05T15:25:05,117 
> [org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
> Will skip this file: RemoteFile[20181119] TRACE 2019-04-05T15:25:05,117 
> [org.apache.camel.component.file.remote.SftpConsumer] - 
> SftpFile[fileName=20181121, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 05:25 20181121, dir=true] TRACE 2019-04-05T15:25:05,837 
> [org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
> Will skip this file: RemoteFile[20181121] TRACE 2019-04-05T15:25:05,840 
> [org.apache.camel.component.file.remote.SftpConsumer] - 
> SftpFile[fileName=20181122, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 05:26 20181122, dir=true] TRACE 2019-04-05T15:25:06,561 
> [org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
> Will skip this file: RemoteFile[20181122] TRACE 2019-04-05T15:25:06,563 
> [org.apache.camel.component.file.remote.SftpConsumer] - 
> SftpFile[fileName=20181123, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 05:27 20181123, dir=true] TRACE 2019-04-05T15:25:07,258 
> [org.apache.camel.component.file.remote.SftpConsumer] - Polling sub 
> directory: /20181123 from: 
> sftp://:22051?connectTimeout=9=true=%24%7Bfile%3Aname%7D+starts+with+%27%24%7Bbean%3AdateofExchange%3Fmethod%3DforLoc%28%22MY%22%29%7D%27=true=.*IMG=C%3A%5Cprogram+files%5Cascertain%5CI2R-MystiQ-Engine%5Cknown_hosts=true=xx=password=3=true=quartz2=0+0%2F5+*+*+*+%3F=false=_ftpuser
>  TRACE 2019-04-05T15:25:07,260 
> [org.apache.camel.component.file.remote.SftpConsumer] - doPollDirectory from 
> absolutePath: /20181123, dirName: 20181123 TRACE 2019-04-05T15:25:07,263 
> [org.apache.camel.component.file.remote.SftpConsumer] - Polling directory: 
> /20181123 TRACE 2019-04-05T15:25:07,265 
> [org.apache.camel.component.file.remote.SftpOperations] - 
> listFiles(/20181123) DEBUG 2019-04-05T15:25:07,281 
> 

[jira] [Commented] (CAMEL-13400) Camel FTP Cannot list directory with 'File not found' prepending additional '/' in front of directory automatically

2019-04-09 Thread Claus Ibsen (JIRA)


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

Claus Ibsen commented on CAMEL-13400:
-

This was first debated on SO which the user should have reported in this JIRA 
so others can see that we have talked about it there first:
https://stackoverflow.com/questions/55570093/camel-ftp-cannot-list-directory-with-file-not-found-pre-pending-additional

I think it smells like a little bug, and a potential fix is to check if that 
absolutePath is empty and if so omit appending the slash.

> Camel FTP Cannot list directory with 'File not found' prepending additional 
> '/' in front of directory automatically
> ---
>
> Key: CAMEL-13400
> URL: https://issues.apache.org/jira/browse/CAMEL-13400
> Project: Camel
>  Issue Type: Bug
>  Components: camel-ftp
>Affects Versions: 3.0.0-M1
>Reporter: Vidhya Sagar Jeevendran
>Priority: Major
>
> I need to poll files form a dynamic folder based on a specific date, so I 
> have provided the parent directory in endpoint URI, enabled recursive flag 
> and add filterDirectory accordingly. But It is not able to poll from the 
> directory, it says file not found for that directory. It is trying with an 
> addition '/' while listing {{listFor(/)}}
> *Endpoint URI*
> {{sftp://:22051?connectTimeout=9=true=%24%7Bfile%3Aname%7D+starts+with+%27%24%7Bbean%3AdateofExchange%3Fmethod%3DforLoc%28%22MY%22%29%7D%27=true=.*IMG=C%3A%5Cprogram+files%5Cascertain%5CI2R-MystiQ-Engine%5Cknown_hosts=true=xx=password=3=true=quartz2=0+0%2F5+*+*+*+%3F=false=_ftpuser
>  }}
> *TRACE LOG*
> {{TRACE 2019-04-05T15:25:03,389 
> [org.apache.camel.component.file.remote.SftpConsumer] - Polling directory: 
> TRACE 2019-04-05T15:25:03,389 
> [org.apache.camel.component.file.remote.SftpOperations] - listFiles() TRACE 
> 2019-04-05T15:25:03,712 [org.apache.camel.component.file.remote.SftpConsumer] 
> - Found 12 in directory: TRACE 2019-04-05T15:25:03,712 
> [org.apache.camel.component.file.remote.SftpConsumer] - SftpFile[fileName=., 
> longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 05:27 ., dir=true] TRACE 
> 2019-04-05T15:25:03,712 [org.apache.camel.component.file.remote.SftpConsumer] 
> - File did not match. Will skip this file: RemoteFile[.] TRACE 
> 2019-04-05T15:25:03,712 [org.apache.camel.component.file.remote.SftpConsumer] 
> - SftpFile[fileName=.., longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 03:04 .., dir=true] TRACE 2019-04-05T15:25:03,712 
> [org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
> Will skip this file: RemoteFile[..] TRACE 2019-04-05T15:25:03,728 
> [org.apache.camel.component.file.remote.SftpConsumer] - 
> SftpFile[fileName=20170526, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 02:16 20170526, dir=true] TRACE 2019-04-05T15:25:04,413 
> [org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
> Will skip this file: RemoteFile[20170526] TRACE 2019-04-05T15:25:04,413 
> [org.apache.camel.component.file.remote.SftpConsumer] - 
> SftpFile[fileName=20181119, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 05:24 20181119, dir=true] TRACE 2019-04-05T15:25:05,117 
> [org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
> Will skip this file: RemoteFile[20181119] TRACE 2019-04-05T15:25:05,117 
> [org.apache.camel.component.file.remote.SftpConsumer] - 
> SftpFile[fileName=20181121, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 05:25 20181121, dir=true] TRACE 2019-04-05T15:25:05,837 
> [org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
> Will skip this file: RemoteFile[20181121] TRACE 2019-04-05T15:25:05,840 
> [org.apache.camel.component.file.remote.SftpConsumer] - 
> SftpFile[fileName=20181122, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 05:26 20181122, dir=true] TRACE 2019-04-05T15:25:06,561 
> [org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
> Will skip this file: RemoteFile[20181122] TRACE 2019-04-05T15:25:06,563 
> [org.apache.camel.component.file.remote.SftpConsumer] - 
> SftpFile[fileName=20181123, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 05:27 20181123, dir=true] TRACE 2019-04-05T15:25:07,258 
> [org.apache.camel.component.file.remote.SftpConsumer] - Polling sub 
> directory: /20181123 from: 
> sftp://:22051?connectTimeout=9=true=%24%7Bfile%3Aname%7D+starts+with+%27%24%7Bbean%3AdateofExchange%3Fmethod%3DforLoc%28%22MY%22%29%7D%27=true=.*IMG=C%3A%5Cprogram+files%5Cascertain%5CI2R-MystiQ-Engine%5Cknown_hosts=true=xx=password=3=true=quartz2=0+0%2F5+*+*+*+%3F=false=_ftpuser
>  TRACE 2019-04-05T15:25:07,260 
> 

[jira] [Resolved] (CAMEL-13400) Camel FTP Cannot list directory with 'File not found' prepending additional '/' in front of directory automatically

2019-04-09 Thread Andrea Cosentino (JIRA)


 [ 
https://issues.apache.org/jira/browse/CAMEL-13400?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrea Cosentino resolved CAMEL-13400.
--
Resolution: Invalid

> Camel FTP Cannot list directory with 'File not found' prepending additional 
> '/' in front of directory automatically
> ---
>
> Key: CAMEL-13400
> URL: https://issues.apache.org/jira/browse/CAMEL-13400
> Project: Camel
>  Issue Type: Bug
>  Components: camel-ftp
>Affects Versions: 3.0.0-M1
>Reporter: Vidhya Sagar Jeevendran
>Priority: Major
>
> I need to poll files form a dynamic folder based on a specific date, so I 
> have provided the parent directory in endpoint URI, enabled recursive flag 
> and add filterDirectory accordingly. But It is not able to poll from the 
> directory, it says file not found for that directory. It is trying with an 
> addition '/' while listing {{listFor(/)}}
> *Endpoint URI*
> {{sftp://:22051?connectTimeout=9=true=%24%7Bfile%3Aname%7D+starts+with+%27%24%7Bbean%3AdateofExchange%3Fmethod%3DforLoc%28%22MY%22%29%7D%27=true=.*IMG=C%3A%5Cprogram+files%5Cascertain%5CI2R-MystiQ-Engine%5Cknown_hosts=true=xx=password=3=true=quartz2=0+0%2F5+*+*+*+%3F=false=_ftpuser
>  }}
> *TRACE LOG*
> {{TRACE 2019-04-05T15:25:03,389 
> [org.apache.camel.component.file.remote.SftpConsumer] - Polling directory: 
> TRACE 2019-04-05T15:25:03,389 
> [org.apache.camel.component.file.remote.SftpOperations] - listFiles() TRACE 
> 2019-04-05T15:25:03,712 [org.apache.camel.component.file.remote.SftpConsumer] 
> - Found 12 in directory: TRACE 2019-04-05T15:25:03,712 
> [org.apache.camel.component.file.remote.SftpConsumer] - SftpFile[fileName=., 
> longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 05:27 ., dir=true] TRACE 
> 2019-04-05T15:25:03,712 [org.apache.camel.component.file.remote.SftpConsumer] 
> - File did not match. Will skip this file: RemoteFile[.] TRACE 
> 2019-04-05T15:25:03,712 [org.apache.camel.component.file.remote.SftpConsumer] 
> - SftpFile[fileName=.., longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 03:04 .., dir=true] TRACE 2019-04-05T15:25:03,712 
> [org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
> Will skip this file: RemoteFile[..] TRACE 2019-04-05T15:25:03,728 
> [org.apache.camel.component.file.remote.SftpConsumer] - 
> SftpFile[fileName=20170526, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 02:16 20170526, dir=true] TRACE 2019-04-05T15:25:04,413 
> [org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
> Will skip this file: RemoteFile[20170526] TRACE 2019-04-05T15:25:04,413 
> [org.apache.camel.component.file.remote.SftpConsumer] - 
> SftpFile[fileName=20181119, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 05:24 20181119, dir=true] TRACE 2019-04-05T15:25:05,117 
> [org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
> Will skip this file: RemoteFile[20181119] TRACE 2019-04-05T15:25:05,117 
> [org.apache.camel.component.file.remote.SftpConsumer] - 
> SftpFile[fileName=20181121, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 05:25 20181121, dir=true] TRACE 2019-04-05T15:25:05,837 
> [org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
> Will skip this file: RemoteFile[20181121] TRACE 2019-04-05T15:25:05,840 
> [org.apache.camel.component.file.remote.SftpConsumer] - 
> SftpFile[fileName=20181122, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 05:26 20181122, dir=true] TRACE 2019-04-05T15:25:06,561 
> [org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
> Will skip this file: RemoteFile[20181122] TRACE 2019-04-05T15:25:06,563 
> [org.apache.camel.component.file.remote.SftpConsumer] - 
> SftpFile[fileName=20181123, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 05:27 20181123, dir=true] TRACE 2019-04-05T15:25:07,258 
> [org.apache.camel.component.file.remote.SftpConsumer] - Polling sub 
> directory: /20181123 from: 
> sftp://:22051?connectTimeout=9=true=%24%7Bfile%3Aname%7D+starts+with+%27%24%7Bbean%3AdateofExchange%3Fmethod%3DforLoc%28%22MY%22%29%7D%27=true=.*IMG=C%3A%5Cprogram+files%5Cascertain%5CI2R-MystiQ-Engine%5Cknown_hosts=true=xx=password=3=true=quartz2=0+0%2F5+*+*+*+%3F=false=_ftpuser
>  TRACE 2019-04-05T15:25:07,260 
> [org.apache.camel.component.file.remote.SftpConsumer] - doPollDirectory from 
> absolutePath: /20181123, dirName: 20181123 TRACE 2019-04-05T15:25:07,263 
> [org.apache.camel.component.file.remote.SftpConsumer] - Polling directory: 
> /20181123 TRACE 2019-04-05T15:25:07,265 
> [org.apache.camel.component.file.remote.SftpOperations] - 
> listFiles(/20181123) DEBUG 2019-04-05T15:25:07,281 
> [org.apache.camel.component.file.remote.SftpConsumer] 

[jira] [Updated] (CAMEL-13400) Camel FTP Cannot list directory with 'File not found' prepending additional '/' in front of directory automatically

2019-04-09 Thread Andrea Cosentino (JIRA)


 [ 
https://issues.apache.org/jira/browse/CAMEL-13400?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrea Cosentino updated CAMEL-13400:
-
Priority: Major  (was: Blocker)

> Camel FTP Cannot list directory with 'File not found' prepending additional 
> '/' in front of directory automatically
> ---
>
> Key: CAMEL-13400
> URL: https://issues.apache.org/jira/browse/CAMEL-13400
> Project: Camel
>  Issue Type: Bug
>  Components: camel-ftp
>Affects Versions: 3.0.0-M1
>Reporter: Vidhya Sagar Jeevendran
>Priority: Major
>
> I need to poll files form a dynamic folder based on a specific date, so I 
> have provided the parent directory in endpoint URI, enabled recursive flag 
> and add filterDirectory accordingly. But It is not able to poll from the 
> directory, it says file not found for that directory. It is trying with an 
> addition '/' while listing {{listFor(/)}}
> *Endpoint URI*
> {{sftp://:22051?connectTimeout=9=true=%24%7Bfile%3Aname%7D+starts+with+%27%24%7Bbean%3AdateofExchange%3Fmethod%3DforLoc%28%22MY%22%29%7D%27=true=.*IMG=C%3A%5Cprogram+files%5Cascertain%5CI2R-MystiQ-Engine%5Cknown_hosts=true=xx=password=3=true=quartz2=0+0%2F5+*+*+*+%3F=false=_ftpuser
>  }}
> *TRACE LOG*
> {{TRACE 2019-04-05T15:25:03,389 
> [org.apache.camel.component.file.remote.SftpConsumer] - Polling directory: 
> TRACE 2019-04-05T15:25:03,389 
> [org.apache.camel.component.file.remote.SftpOperations] - listFiles() TRACE 
> 2019-04-05T15:25:03,712 [org.apache.camel.component.file.remote.SftpConsumer] 
> - Found 12 in directory: TRACE 2019-04-05T15:25:03,712 
> [org.apache.camel.component.file.remote.SftpConsumer] - SftpFile[fileName=., 
> longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 05:27 ., dir=true] TRACE 
> 2019-04-05T15:25:03,712 [org.apache.camel.component.file.remote.SftpConsumer] 
> - File did not match. Will skip this file: RemoteFile[.] TRACE 
> 2019-04-05T15:25:03,712 [org.apache.camel.component.file.remote.SftpConsumer] 
> - SftpFile[fileName=.., longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 03:04 .., dir=true] TRACE 2019-04-05T15:25:03,712 
> [org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
> Will skip this file: RemoteFile[..] TRACE 2019-04-05T15:25:03,728 
> [org.apache.camel.component.file.remote.SftpConsumer] - 
> SftpFile[fileName=20170526, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 02:16 20170526, dir=true] TRACE 2019-04-05T15:25:04,413 
> [org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
> Will skip this file: RemoteFile[20170526] TRACE 2019-04-05T15:25:04,413 
> [org.apache.camel.component.file.remote.SftpConsumer] - 
> SftpFile[fileName=20181119, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 05:24 20181119, dir=true] TRACE 2019-04-05T15:25:05,117 
> [org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
> Will skip this file: RemoteFile[20181119] TRACE 2019-04-05T15:25:05,117 
> [org.apache.camel.component.file.remote.SftpConsumer] - 
> SftpFile[fileName=20181121, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 05:25 20181121, dir=true] TRACE 2019-04-05T15:25:05,837 
> [org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
> Will skip this file: RemoteFile[20181121] TRACE 2019-04-05T15:25:05,840 
> [org.apache.camel.component.file.remote.SftpConsumer] - 
> SftpFile[fileName=20181122, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 05:26 20181122, dir=true] TRACE 2019-04-05T15:25:06,561 
> [org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
> Will skip this file: RemoteFile[20181122] TRACE 2019-04-05T15:25:06,563 
> [org.apache.camel.component.file.remote.SftpConsumer] - 
> SftpFile[fileName=20181123, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 05:27 20181123, dir=true] TRACE 2019-04-05T15:25:07,258 
> [org.apache.camel.component.file.remote.SftpConsumer] - Polling sub 
> directory: /20181123 from: 
> sftp://:22051?connectTimeout=9=true=%24%7Bfile%3Aname%7D+starts+with+%27%24%7Bbean%3AdateofExchange%3Fmethod%3DforLoc%28%22MY%22%29%7D%27=true=.*IMG=C%3A%5Cprogram+files%5Cascertain%5CI2R-MystiQ-Engine%5Cknown_hosts=true=xx=password=3=true=quartz2=0+0%2F5+*+*+*+%3F=false=_ftpuser
>  TRACE 2019-04-05T15:25:07,260 
> [org.apache.camel.component.file.remote.SftpConsumer] - doPollDirectory from 
> absolutePath: /20181123, dirName: 20181123 TRACE 2019-04-05T15:25:07,263 
> [org.apache.camel.component.file.remote.SftpConsumer] - Polling directory: 
> /20181123 TRACE 2019-04-05T15:25:07,265 
> [org.apache.camel.component.file.remote.SftpOperations] - 
> listFiles(/20181123) DEBUG 2019-04-05T15:25:07,281 
> 

[jira] [Commented] (CAMEL-13400) Camel FTP Cannot list directory with 'File not found' prepending additional '/' in front of directory automatically

2019-04-09 Thread Andrea Cosentino (JIRA)


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

Andrea Cosentino commented on CAMEL-13400:
--

ask on the user mailing list first

> Camel FTP Cannot list directory with 'File not found' prepending additional 
> '/' in front of directory automatically
> ---
>
> Key: CAMEL-13400
> URL: https://issues.apache.org/jira/browse/CAMEL-13400
> Project: Camel
>  Issue Type: Bug
>  Components: camel-ftp
>Affects Versions: 3.0.0-M1
>Reporter: Vidhya Sagar Jeevendran
>Priority: Major
>
> I need to poll files form a dynamic folder based on a specific date, so I 
> have provided the parent directory in endpoint URI, enabled recursive flag 
> and add filterDirectory accordingly. But It is not able to poll from the 
> directory, it says file not found for that directory. It is trying with an 
> addition '/' while listing {{listFor(/)}}
> *Endpoint URI*
> {{sftp://:22051?connectTimeout=9=true=%24%7Bfile%3Aname%7D+starts+with+%27%24%7Bbean%3AdateofExchange%3Fmethod%3DforLoc%28%22MY%22%29%7D%27=true=.*IMG=C%3A%5Cprogram+files%5Cascertain%5CI2R-MystiQ-Engine%5Cknown_hosts=true=xx=password=3=true=quartz2=0+0%2F5+*+*+*+%3F=false=_ftpuser
>  }}
> *TRACE LOG*
> {{TRACE 2019-04-05T15:25:03,389 
> [org.apache.camel.component.file.remote.SftpConsumer] - Polling directory: 
> TRACE 2019-04-05T15:25:03,389 
> [org.apache.camel.component.file.remote.SftpOperations] - listFiles() TRACE 
> 2019-04-05T15:25:03,712 [org.apache.camel.component.file.remote.SftpConsumer] 
> - Found 12 in directory: TRACE 2019-04-05T15:25:03,712 
> [org.apache.camel.component.file.remote.SftpConsumer] - SftpFile[fileName=., 
> longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 05:27 ., dir=true] TRACE 
> 2019-04-05T15:25:03,712 [org.apache.camel.component.file.remote.SftpConsumer] 
> - File did not match. Will skip this file: RemoteFile[.] TRACE 
> 2019-04-05T15:25:03,712 [org.apache.camel.component.file.remote.SftpConsumer] 
> - SftpFile[fileName=.., longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 03:04 .., dir=true] TRACE 2019-04-05T15:25:03,712 
> [org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
> Will skip this file: RemoteFile[..] TRACE 2019-04-05T15:25:03,728 
> [org.apache.camel.component.file.remote.SftpConsumer] - 
> SftpFile[fileName=20170526, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 02:16 20170526, dir=true] TRACE 2019-04-05T15:25:04,413 
> [org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
> Will skip this file: RemoteFile[20170526] TRACE 2019-04-05T15:25:04,413 
> [org.apache.camel.component.file.remote.SftpConsumer] - 
> SftpFile[fileName=20181119, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 05:24 20181119, dir=true] TRACE 2019-04-05T15:25:05,117 
> [org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
> Will skip this file: RemoteFile[20181119] TRACE 2019-04-05T15:25:05,117 
> [org.apache.camel.component.file.remote.SftpConsumer] - 
> SftpFile[fileName=20181121, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 05:25 20181121, dir=true] TRACE 2019-04-05T15:25:05,837 
> [org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
> Will skip this file: RemoteFile[20181121] TRACE 2019-04-05T15:25:05,840 
> [org.apache.camel.component.file.remote.SftpConsumer] - 
> SftpFile[fileName=20181122, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 05:26 20181122, dir=true] TRACE 2019-04-05T15:25:06,561 
> [org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
> Will skip this file: RemoteFile[20181122] TRACE 2019-04-05T15:25:06,563 
> [org.apache.camel.component.file.remote.SftpConsumer] - 
> SftpFile[fileName=20181123, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
> 05:27 20181123, dir=true] TRACE 2019-04-05T15:25:07,258 
> [org.apache.camel.component.file.remote.SftpConsumer] - Polling sub 
> directory: /20181123 from: 
> sftp://:22051?connectTimeout=9=true=%24%7Bfile%3Aname%7D+starts+with+%27%24%7Bbean%3AdateofExchange%3Fmethod%3DforLoc%28%22MY%22%29%7D%27=true=.*IMG=C%3A%5Cprogram+files%5Cascertain%5CI2R-MystiQ-Engine%5Cknown_hosts=true=xx=password=3=true=quartz2=0+0%2F5+*+*+*+%3F=false=_ftpuser
>  TRACE 2019-04-05T15:25:07,260 
> [org.apache.camel.component.file.remote.SftpConsumer] - doPollDirectory from 
> absolutePath: /20181123, dirName: 20181123 TRACE 2019-04-05T15:25:07,263 
> [org.apache.camel.component.file.remote.SftpConsumer] - Polling directory: 
> /20181123 TRACE 2019-04-05T15:25:07,265 
> [org.apache.camel.component.file.remote.SftpOperations] - 
> listFiles(/20181123) DEBUG 2019-04-05T15:25:07,281 
> 

[jira] [Created] (CAMEL-13400) Camel FTP Cannot list directory with 'File not found' prepending additional '/' in front of directory automatically

2019-04-09 Thread Vidhya Sagar Jeevendran (JIRA)
Vidhya Sagar Jeevendran created CAMEL-13400:
---

 Summary: Camel FTP Cannot list directory with 'File not found' 
prepending additional '/' in front of directory automatically
 Key: CAMEL-13400
 URL: https://issues.apache.org/jira/browse/CAMEL-13400
 Project: Camel
  Issue Type: Bug
  Components: camel-ftp
Affects Versions: 3.0.0-M1
Reporter: Vidhya Sagar Jeevendran


I need to poll files form a dynamic folder based on a specific date, so I have 
provided the parent directory in endpoint URI, enabled recursive flag and add 
filterDirectory accordingly. But It is not able to poll from the directory, it 
says file not found for that directory. It is trying with an addition '/' while 
listing {{listFor(/)}}

*Endpoint URI*

{{sftp://:22051?connectTimeout=9=true=%24%7Bfile%3Aname%7D+starts+with+%27%24%7Bbean%3AdateofExchange%3Fmethod%3DforLoc%28%22MY%22%29%7D%27=true=.*IMG=C%3A%5Cprogram+files%5Cascertain%5CI2R-MystiQ-Engine%5Cknown_hosts=true=xx=password=3=true=quartz2=0+0%2F5+*+*+*+%3F=false=_ftpuser
 }}

*TRACE LOG*

{{TRACE 2019-04-05T15:25:03,389 
[org.apache.camel.component.file.remote.SftpConsumer] - Polling directory: 
TRACE 2019-04-05T15:25:03,389 
[org.apache.camel.component.file.remote.SftpOperations] - listFiles() TRACE 
2019-04-05T15:25:03,712 [org.apache.camel.component.file.remote.SftpConsumer] - 
Found 12 in directory: TRACE 2019-04-05T15:25:03,712 
[org.apache.camel.component.file.remote.SftpConsumer] - SftpFile[fileName=., 
longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 05:27 ., dir=true] TRACE 
2019-04-05T15:25:03,712 [org.apache.camel.component.file.remote.SftpConsumer] - 
File did not match. Will skip this file: RemoteFile[.] TRACE 
2019-04-05T15:25:03,712 [org.apache.camel.component.file.remote.SftpConsumer] - 
SftpFile[fileName=.., longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 03:04 
.., dir=true] TRACE 2019-04-05T15:25:03,712 
[org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
Will skip this file: RemoteFile[..] TRACE 2019-04-05T15:25:03,728 
[org.apache.camel.component.file.remote.SftpConsumer] - 
SftpFile[fileName=20170526, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
02:16 20170526, dir=true] TRACE 2019-04-05T15:25:04,413 
[org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
Will skip this file: RemoteFile[20170526] TRACE 2019-04-05T15:25:04,413 
[org.apache.camel.component.file.remote.SftpConsumer] - 
SftpFile[fileName=20181119, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
05:24 20181119, dir=true] TRACE 2019-04-05T15:25:05,117 
[org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
Will skip this file: RemoteFile[20181119] TRACE 2019-04-05T15:25:05,117 
[org.apache.camel.component.file.remote.SftpConsumer] - 
SftpFile[fileName=20181121, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
05:25 20181121, dir=true] TRACE 2019-04-05T15:25:05,837 
[org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
Will skip this file: RemoteFile[20181121] TRACE 2019-04-05T15:25:05,840 
[org.apache.camel.component.file.remote.SftpConsumer] - 
SftpFile[fileName=20181122, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
05:26 20181122, dir=true] TRACE 2019-04-05T15:25:06,561 
[org.apache.camel.component.file.remote.SftpConsumer] - File did not match. 
Will skip this file: RemoteFile[20181122] TRACE 2019-04-05T15:25:06,563 
[org.apache.camel.component.file.remote.SftpConsumer] - 
SftpFile[fileName=20181123, longName=dr-x-- 2 ftpadmin ftpadmin 0 Mar 12 
05:27 20181123, dir=true] TRACE 2019-04-05T15:25:07,258 
[org.apache.camel.component.file.remote.SftpConsumer] - Polling sub directory: 
/20181123 from: 
sftp://:22051?connectTimeout=9=true=%24%7Bfile%3Aname%7D+starts+with+%27%24%7Bbean%3AdateofExchange%3Fmethod%3DforLoc%28%22MY%22%29%7D%27=true=.*IMG=C%3A%5Cprogram+files%5Cascertain%5CI2R-MystiQ-Engine%5Cknown_hosts=true=xx=password=3=true=quartz2=0+0%2F5+*+*+*+%3F=false=_ftpuser
 TRACE 2019-04-05T15:25:07,260 
[org.apache.camel.component.file.remote.SftpConsumer] - doPollDirectory from 
absolutePath: /20181123, dirName: 20181123 TRACE 2019-04-05T15:25:07,263 
[org.apache.camel.component.file.remote.SftpConsumer] - Polling directory: 
/20181123 TRACE 2019-04-05T15:25:07,265 
[org.apache.camel.component.file.remote.SftpOperations] - listFiles(/20181123) 
DEBUG 2019-04-05T15:25:07,281 
[org.apache.camel.component.file.remote.SftpConsumer] - Caught exception Cannot 
list directory: /20181123 TRACE 2019-04-05T15:25:07,297 
[org.apache.camel.component.file.remote.SftpConsumer] - Not ignoring file error 
Cannot list directory: /20181123 for /20181123 DEBUG 2019-04-05T15:25:07,297 
[org.apache.camel.component.file.remote.SftpConsumer] - Error occurred during 
poll directory: due Cannot list directory: /20181123. Removing 0 

[jira] [Commented] (CAMEL-13382) False positive reported by validation when using properties

2019-04-09 Thread JIRA


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

Aurélien Pupier commented on CAMEL-13382:
-

{quote}The property placeholder should be {{xxx}} style. Why are you using 
${xxx} style?
{quote}
the notation ${} seems to be working. i don't know from where brian take the 
example with the ${xxx} style.

So either, it is a supported notation and there should be no validation error 
or it is an unsupported notation and it would be better to have a warning 
mentioning that it is not supported instead of an "unknown property" validation 
error.

> False positive reported by validation when using properties
> ---
>
> Key: CAMEL-13382
> URL: https://issues.apache.org/jira/browse/CAMEL-13382
> Project: Camel
>  Issue Type: Bug
>  Components: tooling
>Affects Versions: 2.23.1
>Reporter: Aurélien Pupier
>Priority: Major
>
> When using properties like that
>  
> {quote}{{ uri="http://api.openweathermap.org/data/2.5/weather?${property.weatherUri}"/>}}
> {quote}
>  
> {{an "Unknown property" validation error is reported}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CAMEL-13325) HttpConnectionManagerParams not working for HTTPS URL

2019-04-09 Thread Arthanarisamy Annamalai (JIRA)


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

Arthanarisamy Annamalai commented on CAMEL-13325:
-

[~dmvolod] [~davsclaus]

Was trying out all possible solutions on a trial and error, to my surprise 
noticed below configuration seems to be working with older version.

As per [Camel Components list|[http://camel.apache.org/components.html]] there 
are not components with name https but still  below configuration found to be 
working.

Are my configurations below right?

Now endpoints of both types HTTP/HTTPS are considering MyHTTPConnectionManager 
parameters.

 
{code:java}

 
 
 

 
 
 

 
 

 
 
 
{code}
 

 

 

> HttpConnectionManagerParams not working for HTTPS URL
> -
>
> Key: CAMEL-13325
> URL: https://issues.apache.org/jira/browse/CAMEL-13325
> Project: Camel
>  Issue Type: Bug
>  Components: camel-http
>Affects Versions: 2.17.3
>Reporter: Arthanarisamy Annamalai
>Assignee: Dmitry Volodin
>Priority: Minor
> Attachments: camel-http-client.zip
>
>
> We use Apache Camel's *camel-http* component to integrate with HTTP & HTTPS 
> endpoints, *HttpConnectionManagerParams* is used to configure 
> defaultconnectionsPerHost and maxTotalConnections.
> {code:java}
>  class="org.apache.commons.httpclient.params.HttpConnectionManagerParams" 
> id="MyHttpConnectionManagerParams"> 
>  
>  
> 
> {code}
> Above parameters takes effect only if the endpoint URL is over HTTP, same 
> configuration becomes void and default *HttpConnectionManager* takes effect 
> when endpoint is over HTTPS.
> With default  *HttpConnectionManager,* connections are limited to 2 per host 
> and all user requests gets queued up and response time increased 
> exponentially. 
>  
> Is there something to be additionally configured for HTTPS url? 
>   



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)