You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@syncope.apache.org by alireza ranjbaran <ra...@gmail.com> on 2018/05/22 10:05:09 UTC
Get current date and time using JEXL
Hi,
I need to create a derived schema in Syncope that contains current year and
month. I would appreciate any help...
--
*Best Regards,*
*Alireza *
Re: Get current date and time using JEXL
Posted by Francesco Chicchiriccò <il...@apache.org>.
Hi,
after [1] it is not possible to reference Java classes from JEXL
expressions.
Regards.
[1]
https://syncope.apache.org/security#CVE-2014-0111:_Remote_code_execution_by_an_authenticated_administrator
On 22/05/2018 12:26, alireza ranjbaran wrote:
> I tyied to use JETT to call static java function in derived schema:
>
> ${java.time.LocalDateTime.now()}
>
> But it does not works. It consider '{}' as InvalidValues...
>
> On Tue, May 22, 2018 at 2:35 PM, alireza ranjbaran
> <ranjbaran1989@gmail.com <ma...@gmail.com>> wrote:
>
> Hi,
> I need to create a derived schema in Syncope that contains current
> year and month. I would appreciate any help...
>
--
Francesco Chicchiriccò
Tirasa - Open Source Excellence
http://www.tirasa.net/
Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/
Re: Get current date and time using JEXL
Posted by alireza ranjbaran <ra...@gmail.com>.
I tyied to use JETT to call static java function in derived schema:
${java.time.LocalDateTime.now()}
But it does not works. It consider '{}' as InvalidValues...
On Tue, May 22, 2018 at 2:35 PM, alireza ranjbaran <ra...@gmail.com>
wrote:
> Hi,
> I need to create a derived schema in Syncope that contains current year
> and month. I would appreciate any help...
>
> --
> *Best Regards,*
> *Alireza *
>
>
>
--
*Best Regards,*
*Alireza Ranjbaran*
*ITS Security Operations Engineer at **MTN Irancell*