Re: JQ: Function strftime/1 does not exist

2023-04-18 Thread James Netherton
I created a ticket for it:

https://issues.apache.org/jira/browse/CAMEL-19276

--
James

On Tue, 18 Apr 2023 at 12:57, Claus Ibsen  wrote:

> Hi
>
> Maybe we should include that -extra out of the box in camel-jq
>
> On Tue, Apr 18, 2023 at 1:02 PM James Netherton 
> wrote:
>
> > Hi,
> >
> > Have you added jackson-jq-extra to the application classpath?
> >
> > --
> > James
> >
> > On Mon, 17 Apr 2023 at 16:32, Mikael Koskinen 
> wrote:
> >
> > > Hi,
> > >
> > > When using the following JQ expression:
> > >
> > > now | strftime("%Y-%d-%m")
> > >
> > > I get the following error:
> > >
> > >   CaughtExceptionType: org.apache.camel.RuntimeCamelException
> > > CaughtExceptionMessage:
> > > net.thisptr.jackson.jq.exception.JsonQueryException: Function
> > > strftime/1 does not exist  StackTrace:
> > > org.apache.camel.RuntimeCamelException:
> > > net.thisptr.jackson.jq.exception.JsonQueryException: Function
> > > strftime/1 does not exist
> > > at
> > >
> org.apache.camel.language.jq.JqExpression.evaluate(JqExpression.java:198)
> > > at
> > >
> >
> org.apache.camel.support.ExpressionAdapter.evaluate(ExpressionAdapter.java:45)
> > >
> > > I checked the following project (which I think Camel uses?)
> > > https://github.com/eiiches/jackson-jq and based on the documentation,
> > > I think it should support strftime:
> > >
> > >
> > >
> >
> https://github.com/eiiches/jackson-jq/blob/ad9dba1eb618640cf8c72634a5ee99c04ddc8e5b/README.md?plain=1#L530
> > >
> > > Also tested in this format but same issue:
> > >
> > > strftime("-MM-dd")
> > >
> > > Here's a link to jqplayground which shows how the function should work:
> > >
> > > https://jqplay.org/s/tl0HuDi71wF
> > >
> > > Best regards,
> > > Mikael
> > >
> >
>
>
> --
> Claus Ibsen
> -
> @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>


Re: JQ: Function strftime/1 does not exist

2023-04-18 Thread Claus Ibsen
Hi

Maybe we should include that -extra out of the box in camel-jq

On Tue, Apr 18, 2023 at 1:02 PM James Netherton 
wrote:

> Hi,
>
> Have you added jackson-jq-extra to the application classpath?
>
> --
> James
>
> On Mon, 17 Apr 2023 at 16:32, Mikael Koskinen  wrote:
>
> > Hi,
> >
> > When using the following JQ expression:
> >
> > now | strftime("%Y-%d-%m")
> >
> > I get the following error:
> >
> >   CaughtExceptionType: org.apache.camel.RuntimeCamelException
> > CaughtExceptionMessage:
> > net.thisptr.jackson.jq.exception.JsonQueryException: Function
> > strftime/1 does not exist  StackTrace:
> > org.apache.camel.RuntimeCamelException:
> > net.thisptr.jackson.jq.exception.JsonQueryException: Function
> > strftime/1 does not exist
> > at
> > org.apache.camel.language.jq.JqExpression.evaluate(JqExpression.java:198)
> > at
> >
> org.apache.camel.support.ExpressionAdapter.evaluate(ExpressionAdapter.java:45)
> >
> > I checked the following project (which I think Camel uses?)
> > https://github.com/eiiches/jackson-jq and based on the documentation,
> > I think it should support strftime:
> >
> >
> >
> https://github.com/eiiches/jackson-jq/blob/ad9dba1eb618640cf8c72634a5ee99c04ddc8e5b/README.md?plain=1#L530
> >
> > Also tested in this format but same issue:
> >
> > strftime("-MM-dd")
> >
> > Here's a link to jqplayground which shows how the function should work:
> >
> > https://jqplay.org/s/tl0HuDi71wF
> >
> > Best regards,
> > Mikael
> >
>


-- 
Claus Ibsen
-
@davsclaus
Camel in Action 2: https://www.manning.com/ibsen2


Re: JQ: Function strftime/1 does not exist

2023-04-18 Thread James Netherton
Hi,

Have you added jackson-jq-extra to the application classpath?

--
James

On Mon, 17 Apr 2023 at 16:32, Mikael Koskinen  wrote:

> Hi,
>
> When using the following JQ expression:
>
> now | strftime("%Y-%d-%m")
>
> I get the following error:
>
>   CaughtExceptionType: org.apache.camel.RuntimeCamelException
> CaughtExceptionMessage:
> net.thisptr.jackson.jq.exception.JsonQueryException: Function
> strftime/1 does not exist  StackTrace:
> org.apache.camel.RuntimeCamelException:
> net.thisptr.jackson.jq.exception.JsonQueryException: Function
> strftime/1 does not exist
> at
> org.apache.camel.language.jq.JqExpression.evaluate(JqExpression.java:198)
> at
> org.apache.camel.support.ExpressionAdapter.evaluate(ExpressionAdapter.java:45)
>
> I checked the following project (which I think Camel uses?)
> https://github.com/eiiches/jackson-jq and based on the documentation,
> I think it should support strftime:
>
>
> https://github.com/eiiches/jackson-jq/blob/ad9dba1eb618640cf8c72634a5ee99c04ddc8e5b/README.md?plain=1#L530
>
> Also tested in this format but same issue:
>
> strftime("-MM-dd")
>
> Here's a link to jqplayground which shows how the function should work:
>
> https://jqplay.org/s/tl0HuDi71wF
>
> Best regards,
> Mikael
>


Re: Camel in Action: Microsoft Azure Files over public Internet

2023-04-18 Thread Andrea Cosentino
Hello,

To me it makes sense to have a component supporting the SDK.

Open an issue for that, if you have time you could contribute it, otherwise
someone could take a look.

Il giorno mar 18 apr 2023 alle ore 09:18 Petr Kuzel
 ha scritto:

> Hi Chirag,
>
> well, it is not the first time I hear, apparently
> it is a common confusion in the community.
>
> Azure Blob Storage
>   Massively scalable and secure object storage for cloud-native workloads,
>   archives, data lakes, high-performance computing, and machine learning.
>   
>
> Azure Files
>   Simple, secure, and serverless enterprise-grade cloud file shares.
>   
>
> My question is about Azure Files.
>
>   Best regards
>   Cc.
>
> -Original Message-
> From: Chirag 
> Sent: Monday, April 17, 2023 17:30
> To: users@camel.apache.org
> Subject: Re: Camel in Action: Microsoft Azure Files over public Internet
>
>
> Shouldn't you be lookin at
>
> https://camel.apache.org/components/3.20.x/azure-storage-blob-component.html
> ?
>
> Or a variation of it? The APIs are similar.
>
>
> ચિરાગ/चिराग/Chirag
> --
> Sent from My Gmail Account
>
> On Mon, Apr 17, 2023 at 11:18 AM Petr Kuzel
>  wrote:
> >
> > I have a new RFE which includes integrating
> > Microsoft Azure Files over public Internet.
> >
> > Initial findings and constraints:
> >
> >   - Azure Files do not implement the FTP standard.
> >   - Azure Files could expose SMB protocol but SMB over
> > public Internet is blacklisted by the security policy.
> >   - Azure Files could expose NFS but its pricing is prohibitive.
> >   - Azure Files have REST API <
> https://github.com/Azure/azure-rest-api-specs>
> > and Java SDK .
> >   - My team is used to Camel 3.x components.
> >
> > Given that I see the two options:
> >
> >   A: use Camel REST component.
> >   B: use Azure Files remote file component.
> >
> > Neither seems easy. For the Camel REST component,
> > I'd need to implement a polling consumer via REST and
> > match the FTPS component-like capabilities. For Azure Files,
> > I have not found a developed Camel remote file component
> > so its development would be required, i.e. likely a continuation
> > at the Camel dev list...
> >
> > First, have I overlooked any recommendable option that
> > could address the problem, please?
> >
> > Second, if left only with above two options, which approach
> > would look more promising from a Camel veteran perspective
> > and why, please?
> >
> >   Best regards
> >   Cc.
> >
> > --
> >   Mr. Petr Kužel, Software Engineer
> >   Eurofins International Support Services s.à r.l.
> >   Val Fleuri 23
> >   L-1526 LUXEMBOURG
> >
>


RE: Camel in Action: Microsoft Azure Files over public Internet

2023-04-18 Thread Petr Kuzel
Hi Chirag,

well, it is not the first time I hear, apparently
it is a common confusion in the community.

Azure Blob Storage
  Massively scalable and secure object storage for cloud-native workloads,
  archives, data lakes, high-performance computing, and machine learning.
  

Azure Files
  Simple, secure, and serverless enterprise-grade cloud file shares.
  

My question is about Azure Files.

  Best regards
  Cc.

-Original Message-
From: Chirag 
Sent: Monday, April 17, 2023 17:30
To: users@camel.apache.org
Subject: Re: Camel in Action: Microsoft Azure Files over public Internet


Shouldn't you be lookin at
https://camel.apache.org/components/3.20.x/azure-storage-blob-component.html?

Or a variation of it? The APIs are similar.


ચિરાગ/चिराग/Chirag
--
Sent from My Gmail Account

On Mon, Apr 17, 2023 at 11:18 AM Petr Kuzel
 wrote:
>
> I have a new RFE which includes integrating
> Microsoft Azure Files over public Internet.
>
> Initial findings and constraints:
>
>   - Azure Files do not implement the FTP standard.
>   - Azure Files could expose SMB protocol but SMB over
> public Internet is blacklisted by the security policy.
>   - Azure Files could expose NFS but its pricing is prohibitive.
>   - Azure Files have REST API 
> and Java SDK .
>   - My team is used to Camel 3.x components.
>
> Given that I see the two options:
>
>   A: use Camel REST component.
>   B: use Azure Files remote file component.
>
> Neither seems easy. For the Camel REST component,
> I'd need to implement a polling consumer via REST and
> match the FTPS component-like capabilities. For Azure Files,
> I have not found a developed Camel remote file component
> so its development would be required, i.e. likely a continuation
> at the Camel dev list...
>
> First, have I overlooked any recommendable option that
> could address the problem, please?
>
> Second, if left only with above two options, which approach
> would look more promising from a Camel veteran perspective
> and why, please?
>
>   Best regards
>   Cc.
>
> --
>   Mr. Petr Kužel, Software Engineer
>   Eurofins International Support Services s.à r.l.
>   Val Fleuri 23
>   L-1526 LUXEMBOURG
>