Date format on user self-registration

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Date format on user self-registration

Tech

Dear experts,

We added the date as custom field, we added it to the BaseUser class and after we added to the USER schema.

During the self registration we are able to display the field, that is correctly displayed as Date (we can also see the calendar button).

We can complete the registration procedure, but the information is not stored into the Database.

We modified the Conversion-Pattern using yyyy-MM-dd, but this changes only the way the data is displayed in the interface, but we can't still store the information into the database.

Could you please advise?

Thanks

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Date format on user self-registration

ilgrosso
Administrator
On 12/01/2017 14:27, Tech wrote:

Dear experts,

We added the date as custom field, we added it to the BaseUser class and after we added to the USER schema.

During the self registration we are able to display the field, that is correctly displayed as Date (we can also see the calendar button).

We can complete the registration procedure, but the information is not stored into the Database.

We modified the Conversion-Pattern using yyyy-MM-dd, but this changes only the way the data is displayed in the interface, but we can't still store the information into the database.


Hi,
it seems you've spotted a bug in the Enduser UI; I have just performed the following steps:

1. from Admin UI, create new Date schema with conversion pattern '
yyyy-MM-dd' and added to the base type for USER
2. perform self-registration via Enduser UI, provided a value for the new Date attribute
3. open the new user from Admin UI, no value found for the new Date attribute

So, the bug is confirmed.


Moreover, I also did:

4. from Admin UI, set a value for the new Date attribute on the new user
5. log into the Enduser UI as the new user, see the value set from Admin UI, then update the Date schema with a new value
6. from Admin UI, see the new value as provided via Enduser UI

Hence the bug seems to occur only during self-registration.

Would you mind opening an issue onhttps://issues.apache.org/jira/browse/SYNCOPE/ ?

Regards.
-- 
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/
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Date format on user self-registration

ilgrosso
Administrator
On 2017-01-12 14:50 (+0100), Francesco Chicchiriccò <[hidden email]> wrote:

> On 12/01/2017 14:27, Tech wrote:
> >
> > Dear experts,
> >
> > We added the date as custom field, we added it to the BaseUser class
> > and after we added to the USER schema.
> >
> > During the self registration we are able to display the field, that is
> > correctly displayed as Date (we can also see the calendar button).
> >
> > We can complete the registration procedure, but the information is not
> > stored into the Database.
> >
> > We modified the Conversion-Pattern using yyyy-MM-dd, but this changes
> > only the way the data is displayed in the interface, but we can't
> > still store the information into the database.
> >
>
> Hi,
> it seems you've spotted a bug in the Enduser UI; I have just performed
> the following steps:
>
> 1. from Admin UI, create new Date schema with conversion pattern
> 'yyyy-MM-dd' and added to the base type for USER
> 2. perform self-registration via Enduser UI, provided a value for the
> new Date attribute
> 3. open the new user from Admin UI, no value found for the new Date
> attribute
>
> So, the bug is confirmed.
>
> Moreover, I also did:
>
> 4. from Admin UI, set a value for the new Date attribute on the new user
> 5. log into the Enduser UI as the new user, see the value set from Admin
> UI, then update the Date schema with a new value
> 6. from Admin UI, see the new value as provided via Enduser UI
>
> Hence the bug seems to occur only during self-registration.
>
> Would you mind opening an issue
> on
>
> https://issues.apache.org/jira/browse/SYNCOPE/
>
> ?

Hi,
I have just committed a fix for SYNCOPE-992 (the issue you've opened as request above, thx).

Such fix will be available with release of Apache Syncope 2.0.2; should you want to backport the fix on your local project, you will have to

1. create the directory

enduser/src/main/java/org/apache/syncope/client/enduser/resources/

the download the class

https://github.com/apache/syncope/blob/eded0eb3af5b96b513d934f19509bdf4b06e9df0/client/enduser/src/main/java/org/apache/syncope/client/enduser/resources/UserSelfCreateResource.java

in the new created directory

2. replace the file content of

enduser/src/main/webapp/app/js/directives/dynamicPlainAttribute.js

with the content from

https://github.com/apache/syncope/blob/eded0eb3af5b96b513d934f19509bdf4b06e9df0/client/enduser/src/main/resources/META-INF/resources/app/js/directives/dynamicPlainAttribute.js

Afterwards, naturally, you'll have to rebuild & redeploy.

Regards.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Date format on user self-registration

Tech
Hello,

we created the new java files as requested, we modified the
dynamicPlainAttribute.js , but we didn't resolve the situation yet.

We tried two scenarios: the first with an existing user that needs to
enter the date field where before it was empty, the second with a brand
new user where he enter for the first time the information, but also in
this case the date is not saved into the system.

Could you please double check?

Thanks






On 13/01/2017 11:58, Francesco Chicchiriccò wrote:

> On 2017-01-12 14:50 (+0100), Francesco Chicchiriccò <[hidden email]> wrote:
>> On 12/01/2017 14:27, Tech wrote:
>>> Dear experts,
>>>
>>> We added the date as custom field, we added it to the BaseUser class
>>> and after we added to the USER schema.
>>>
>>> During the self registration we are able to display the field, that is
>>> correctly displayed as Date (we can also see the calendar button).
>>>
>>> We can complete the registration procedure, but the information is not
>>> stored into the Database.
>>>
>>> We modified the Conversion-Pattern using yyyy-MM-dd, but this changes
>>> only the way the data is displayed in the interface, but we can't
>>> still store the information into the database.
>>>
>> Hi,
>> it seems you've spotted a bug in the Enduser UI; I have just performed
>> the following steps:
>>
>> 1. from Admin UI, create new Date schema with conversion pattern
>> 'yyyy-MM-dd' and added to the base type for USER
>> 2. perform self-registration via Enduser UI, provided a value for the
>> new Date attribute
>> 3. open the new user from Admin UI, no value found for the new Date
>> attribute
>>
>> So, the bug is confirmed.
>>
>> Moreover, I also did:
>>
>> 4. from Admin UI, set a value for the new Date attribute on the new user
>> 5. log into the Enduser UI as the new user, see the value set from Admin
>> UI, then update the Date schema with a new value
>> 6. from Admin UI, see the new value as provided via Enduser UI
>>
>> Hence the bug seems to occur only during self-registration.
>>
>> Would you mind opening an issue
>> on
>>
>> https://issues.apache.org/jira/browse/SYNCOPE/
>>
>> ?
> Hi,
> I have just committed a fix for SYNCOPE-992 (the issue you've opened as request above, thx).
>
> Such fix will be available with release of Apache Syncope 2.0.2; should you want to backport the fix on your local project, you will have to
>
> 1. create the directory
>
> enduser/src/main/java/org/apache/syncope/client/enduser/resources/
>
> the download the class
>
> https://github.com/apache/syncope/blob/eded0eb3af5b96b513d934f19509bdf4b06e9df0/client/enduser/src/main/java/org/apache/syncope/client/enduser/resources/UserSelfCreateResource.java
>
> in the new created directory
>
> 2. replace the file content of
>
> enduser/src/main/webapp/app/js/directives/dynamicPlainAttribute.js
>
> with the content from
>
> https://github.com/apache/syncope/blob/eded0eb3af5b96b513d934f19509bdf4b06e9df0/client/enduser/src/main/resources/META-INF/resources/app/js/directives/dynamicPlainAttribute.js
>
> Afterwards, naturally, you'll have to rebuild & redeploy.
>
> Regards.


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Date format on user self-registration

ilgrosso
Administrator
On 18/01/2017 10:23, Tech wrote:

> Hello,
>
> we created the new java files as requested, we modified the
> dynamicPlainAttribute.js , but we didn't resolve the situation yet.
>
> We tried two scenarios: the first with an existing user that needs to
> enter the date field where before it was empty, the second with a brand
> new user where he enter for the first time the information, but also in
> this case the date is not saved into the system.
>
> Could you please double check?

Hi,
I have just tried locally and it worked as expected; you could also try
yourself with our public demo at

http://syncope-vm.apache.org:9080/syncope-console/
http://syncope-vm.apache.org:9080/syncope-enduser/

The version deployed there is the latest 2.0.2-SNAPSHOT.

Regards.

> On 13/01/2017 11:58, Francesco Chicchiriccò wrote:
>> On 2017-01-12 14:50 (+0100), Francesco Chicchiriccò <[hidden email]> wrote:
>>> On 12/01/2017 14:27, Tech wrote:
>>>> Dear experts,
>>>>
>>>> We added the date as custom field, we added it to the BaseUser class
>>>> and after we added to the USER schema.
>>>>
>>>> During the self registration we are able to display the field, that is
>>>> correctly displayed as Date (we can also see the calendar button).
>>>>
>>>> We can complete the registration procedure, but the information is not
>>>> stored into the Database.
>>>>
>>>> We modified the Conversion-Pattern using yyyy-MM-dd, but this changes
>>>> only the way the data is displayed in the interface, but we can't
>>>> still store the information into the database.
>>>>
>>> Hi,
>>> it seems you've spotted a bug in the Enduser UI; I have just performed
>>> the following steps:
>>>
>>> 1. from Admin UI, create new Date schema with conversion pattern
>>> 'yyyy-MM-dd' and added to the base type for USER
>>> 2. perform self-registration via Enduser UI, provided a value for the
>>> new Date attribute
>>> 3. open the new user from Admin UI, no value found for the new Date
>>> attribute
>>>
>>> So, the bug is confirmed.
>>>
>>> Moreover, I also did:
>>>
>>> 4. from Admin UI, set a value for the new Date attribute on the new user
>>> 5. log into the Enduser UI as the new user, see the value set from Admin
>>> UI, then update the Date schema with a new value
>>> 6. from Admin UI, see the new value as provided via Enduser UI
>>>
>>> Hence the bug seems to occur only during self-registration.
>>>
>>> Would you mind opening an issue
>>> on
>>>
>>> https://issues.apache.org/jira/browse/SYNCOPE/
>>>
>>> ?
>> Hi,
>> I have just committed a fix for SYNCOPE-992 (the issue you've opened as request above, thx).
>>
>> Such fix will be available with release of Apache Syncope 2.0.2; should you want to backport the fix on your local project, you will have to
>>
>> 1. create the directory
>>
>> enduser/src/main/java/org/apache/syncope/client/enduser/resources/
>>
>> the download the class
>>
>> https://github.com/apache/syncope/blob/eded0eb3af5b96b513d934f19509bdf4b06e9df0/client/enduser/src/main/java/org/apache/syncope/client/enduser/resources/UserSelfCreateResource.java
>>
>> in the new created directory
>>
>> 2. replace the file content of
>>
>> enduser/src/main/webapp/app/js/directives/dynamicPlainAttribute.js
>>
>> with the content from
>>
>> https://github.com/apache/syncope/blob/eded0eb3af5b96b513d934f19509bdf4b06e9df0/client/enduser/src/main/resources/META-INF/resources/app/js/directives/dynamicPlainAttribute.js
>>
>> Afterwards, naturally, you'll have to rebuild & redeploy.
>>
>> Regards.

--
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/

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Date format on user self-registration

Tech
Hello,

thanks, in the version 2.0.2 the Date is working correctly.

Regards




On 18/01/2017 10:31, Francesco Chicchiriccò wrote:

> On 18/01/2017 10:23, Tech wrote:
>> Hello,
>>
>> we created the new java files as requested, we modified the
>> dynamicPlainAttribute.js , but we didn't resolve the situation yet.
>>
>> We tried two scenarios: the first with an existing user that needs to
>> enter the date field where before it was empty, the second with a brand
>> new user where he enter for the first time the information, but also in
>> this case the date is not saved into the system.
>>
>> Could you please double check?
>
> Hi,
> I have just tried locally and it worked as expected; you could also
> try yourself with our public demo at
>
> http://syncope-vm.apache.org:9080/syncope-console/
> http://syncope-vm.apache.org:9080/syncope-enduser/
>
> The version deployed there is the latest 2.0.2-SNAPSHOT.
>
> Regards.
>
>> On 13/01/2017 11:58, Francesco Chicchiriccò wrote:
>>> On 2017-01-12 14:50 (+0100), Francesco Chicchiriccò
>>> <[hidden email]> wrote:
>>>> On 12/01/2017 14:27, Tech wrote:
>>>>> Dear experts,
>>>>>
>>>>> We added the date as custom field, we added it to the BaseUser class
>>>>> and after we added to the USER schema.
>>>>>
>>>>> During the self registration we are able to display the field,
>>>>> that is
>>>>> correctly displayed as Date (we can also see the calendar button).
>>>>>
>>>>> We can complete the registration procedure, but the information is
>>>>> not
>>>>> stored into the Database.
>>>>>
>>>>> We modified the Conversion-Pattern using yyyy-MM-dd, but this changes
>>>>> only the way the data is displayed in the interface, but we can't
>>>>> still store the information into the database.
>>>>>
>>>> Hi,
>>>> it seems you've spotted a bug in the Enduser UI; I have just performed
>>>> the following steps:
>>>>
>>>> 1. from Admin UI, create new Date schema with conversion pattern
>>>> 'yyyy-MM-dd' and added to the base type for USER
>>>> 2. perform self-registration via Enduser UI, provided a value for the
>>>> new Date attribute
>>>> 3. open the new user from Admin UI, no value found for the new Date
>>>> attribute
>>>>
>>>> So, the bug is confirmed.
>>>>
>>>> Moreover, I also did:
>>>>
>>>> 4. from Admin UI, set a value for the new Date attribute on the new
>>>> user
>>>> 5. log into the Enduser UI as the new user, see the value set from
>>>> Admin
>>>> UI, then update the Date schema with a new value
>>>> 6. from Admin UI, see the new value as provided via Enduser UI
>>>>
>>>> Hence the bug seems to occur only during self-registration.
>>>>
>>>> Would you mind opening an issue
>>>> on
>>>>
>>>> https://issues.apache.org/jira/browse/SYNCOPE/
>>>>
>>>> ?
>>> Hi,
>>> I have just committed a fix for SYNCOPE-992 (the issue you've opened
>>> as request above, thx).
>>>
>>> Such fix will be available with release of Apache Syncope 2.0.2;
>>> should you want to backport the fix on your local project, you will
>>> have to
>>>
>>> 1. create the directory
>>>
>>> enduser/src/main/java/org/apache/syncope/client/enduser/resources/
>>>
>>> the download the class
>>>
>>> https://github.com/apache/syncope/blob/eded0eb3af5b96b513d934f19509bdf4b06e9df0/client/enduser/src/main/java/org/apache/syncope/client/enduser/resources/UserSelfCreateResource.java
>>>
>>>
>>> in the new created directory
>>>
>>> 2. replace the file content of
>>>
>>> enduser/src/main/webapp/app/js/directives/dynamicPlainAttribute.js
>>>
>>> with the content from
>>>
>>> https://github.com/apache/syncope/blob/eded0eb3af5b96b513d934f19509bdf4b06e9df0/client/enduser/src/main/resources/META-INF/resources/app/js/directives/dynamicPlainAttribute.js
>>>
>>>
>>> Afterwards, naturally, you'll have to rebuild & redeploy.
>>>
>>> Regards.
>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Date format on user self-registration

ilgrosso
Administrator
On 18/01/2017 11:34, Tech wrote:
> Hello,
>
> thanks, in the version 2.0.2 the Date is working correctly.

Please be aware that there is no 2.0.2 yet, only 2.0.2-SNAPSHOT, which
is the ongoing work that will eventually bring the official 2.0.2.

The instructions I have you below are for backporting the fix in
2.0.2-SNAPSHOT into your local project based on 2.0.1.
I assume something went wrong in this process, I will update my
reference project at

https://github.com/Tirasa/syncopeOnJBoss

with such backport as soon as I got some spare time, maybe this could
help you.
Regards.

> On 18/01/2017 10:31, Francesco Chicchiriccò wrote:
>> On 18/01/2017 10:23, Tech wrote:
>>> Hello,
>>>
>>> we created the new java files as requested, we modified the
>>> dynamicPlainAttribute.js , but we didn't resolve the situation yet.
>>>
>>> We tried two scenarios: the first with an existing user that needs to
>>> enter the date field where before it was empty, the second with a brand
>>> new user where he enter for the first time the information, but also in
>>> this case the date is not saved into the system.
>>>
>>> Could you please double check?
>> Hi,
>> I have just tried locally and it worked as expected; you could also
>> try yourself with our public demo at
>>
>> http://syncope-vm.apache.org:9080/syncope-console/
>> http://syncope-vm.apache.org:9080/syncope-enduser/
>>
>> The version deployed there is the latest 2.0.2-SNAPSHOT.
>>
>> Regards.
>>
>>> On 13/01/2017 11:58, Francesco Chicchiriccò wrote:
>>>> On 2017-01-12 14:50 (+0100), Francesco Chicchiriccò
>>>> <[hidden email]> wrote:
>>>>> On 12/01/2017 14:27, Tech wrote:
>>>>>> Dear experts,
>>>>>>
>>>>>> We added the date as custom field, we added it to the BaseUser class
>>>>>> and after we added to the USER schema.
>>>>>>
>>>>>> During the self registration we are able to display the field,
>>>>>> that is
>>>>>> correctly displayed as Date (we can also see the calendar button).
>>>>>>
>>>>>> We can complete the registration procedure, but the information is
>>>>>> not
>>>>>> stored into the Database.
>>>>>>
>>>>>> We modified the Conversion-Pattern using yyyy-MM-dd, but this changes
>>>>>> only the way the data is displayed in the interface, but we can't
>>>>>> still store the information into the database.
>>>>>>
>>>>> Hi,
>>>>> it seems you've spotted a bug in the Enduser UI; I have just performed
>>>>> the following steps:
>>>>>
>>>>> 1. from Admin UI, create new Date schema with conversion pattern
>>>>> 'yyyy-MM-dd' and added to the base type for USER
>>>>> 2. perform self-registration via Enduser UI, provided a value for the
>>>>> new Date attribute
>>>>> 3. open the new user from Admin UI, no value found for the new Date
>>>>> attribute
>>>>>
>>>>> So, the bug is confirmed.
>>>>>
>>>>> Moreover, I also did:
>>>>>
>>>>> 4. from Admin UI, set a value for the new Date attribute on the new
>>>>> user
>>>>> 5. log into the Enduser UI as the new user, see the value set from
>>>>> Admin
>>>>> UI, then update the Date schema with a new value
>>>>> 6. from Admin UI, see the new value as provided via Enduser UI
>>>>>
>>>>> Hence the bug seems to occur only during self-registration.
>>>>>
>>>>> Would you mind opening an issue
>>>>> on
>>>>>
>>>>> https://issues.apache.org/jira/browse/SYNCOPE/
>>>>>
>>>>> ?
>>>> Hi,
>>>> I have just committed a fix for SYNCOPE-992 (the issue you've opened
>>>> as request above, thx).
>>>>
>>>> Such fix will be available with release of Apache Syncope 2.0.2;
>>>> should you want to backport the fix on your local project, you will
>>>> have to
>>>>
>>>> 1. create the directory
>>>>
>>>> enduser/src/main/java/org/apache/syncope/client/enduser/resources/
>>>>
>>>> the download the class
>>>>
>>>> https://github.com/apache/syncope/blob/eded0eb3af5b96b513d934f19509bdf4b06e9df0/client/enduser/src/main/java/org/apache/syncope/client/enduser/resources/UserSelfCreateResource.java
>>>>
>>>>
>>>> in the new created directory
>>>>
>>>> 2. replace the file content of
>>>>
>>>> enduser/src/main/webapp/app/js/directives/dynamicPlainAttribute.js
>>>>
>>>> with the content from
>>>>
>>>> https://github.com/apache/syncope/blob/eded0eb3af5b96b513d934f19509bdf4b06e9df0/client/enduser/src/main/resources/META-INF/resources/app/js/directives/dynamicPlainAttribute.js
>>>>
>>>>
>>>> Afterwards, naturally, you'll have to rebuild & redeploy.
>>>>
>>>> Regards.

--
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/

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Date format on user self-registration

ilgrosso
Administrator
On 18/01/2017 12:01, Francesco Chicchiriccò wrote:

> On 18/01/2017 11:34, Tech wrote:
>> Hello,
>>
>> thanks, in the version 2.0.2 the Date is working correctly.
>
> Please be aware that there is no 2.0.2 yet, only 2.0.2-SNAPSHOT, which
> is the ongoing work that will eventually bring the official 2.0.2.
>
> The instructions I have you below are for
> backMariaDB_ApplicationDataSourceporting the fix in 2.0.2-SNAPSHOT
> into your local project based on 2.0.1.
> I assume something went wrong in this process, I will update my
> reference project at
>
> https://github.com/Tirasa/syncopeOnJBoss
>
> with such backport as soon as I got some spare time, maybe this could
> help you.

FYI, I have just upgraded the reference project above (all the 2.0
branches, e.g. master, MariaDB_ContainerDataSource  and
MariaDB_ApplicationDataSource) with the fix for SYNCOPE-992.

After building and new deployment to Wildfly, I have created two plain
schemas and added to the BaseUser class (via Admin Console):

1. 'sample date' with conversion pattern 'yyyy-MM-dd'
2. 'sample date and time' with conversion pattern
'yyyy-MM-dd'T'HH:mm:ss.SSSZ'

Then I performed a self registration via EndUser and provided values for
the two date attributes just created.

As expected, the values where correctly reported either by the Admin
Console and by the EndUser UI.

HTH
Regards.

>> On 18/01/2017 10:31, Francesco Chicchiriccò wrote:
>>> On 18/01/2017 10:23, Tech wrote:
>>>> Hello,
>>>>
>>>> we created the new java files as requested, we modified the
>>>> dynamicPlainAttribute.js , but we didn't resolve the situation yet.
>>>>
>>>> We tried two scenarios: the first with an existing user that needs to
>>>> enter the date field where before it was empty, the second with a
>>>> brand
>>>> new user where he enter for the first time the information, but
>>>> also in
>>>> this case the date is not saved into the system.
>>>>
>>>> Could you please double check?
>>> Hi,
>>> I have just tried locally and it worked as expected; you could also
>>> try yourself with our public demo at
>>>
>>> http://syncope-vm.apache.org:9080/syncope-console/
>>> http://syncope-vm.apache.org:9080/syncope-enduser/
>>>
>>> The version deployed there is the latest 2.0.2-SNAPSHOT.
>>>
>>> Regards.
>>>
>>>> On 13/01/2017 11:58, Francesco Chicchiriccò wrote:
>>>>> On 2017-01-12 14:50 (+0100), Francesco Chicchiriccò
>>>>> <[hidden email]> wrote:
>>>>>> On 12/01/2017 14:27, Tech wrote:
>>>>>>> Dear experts,
>>>>>>>
>>>>>>> We added the date as custom field, we added it to the BaseUser
>>>>>>> class
>>>>>>> and after we added to the USER schema.
>>>>>>>
>>>>>>> During the self registration we are able to display the field,
>>>>>>> that is
>>>>>>> correctly displayed as Date (we can also see the calendar button).
>>>>>>>
>>>>>>> We can complete the registration procedure, but the information is
>>>>>>> not
>>>>>>> stored into the Database.
>>>>>>>
>>>>>>> We modified the Conversion-Pattern using yyyy-MM-dd, but this
>>>>>>> changes
>>>>>>> only the way the data is displayed in the interface, but we can't
>>>>>>> still store the information into the database.
>>>>>>>
>>>>>> Hi,
>>>>>> it seems you've spotted a bug in the Enduser UI; I have just
>>>>>> performed
>>>>>> the following steps:
>>>>>>
>>>>>> 1. from Admin UI, create new Date schema with conversion pattern
>>>>>> 'yyyy-MM-dd' and added to the base type for USER
>>>>>> 2. perform self-registration via Enduser UI, provided a value for
>>>>>> the
>>>>>> new Date attribute
>>>>>> 3. open the new user from Admin UI, no value found for the new Date
>>>>>> attribute
>>>>>>
>>>>>> So, the bug is confirmed.
>>>>>>
>>>>>> Moreover, I also did:
>>>>>>
>>>>>> 4. from Admin UI, set a value for the new Date attribute on the new
>>>>>> user
>>>>>> 5. log into the Enduser UI as the new user, see the value set from
>>>>>> Admin
>>>>>> UI, then update the Date schema with a new value
>>>>>> 6. from Admin UI, see the new value as provided via Enduser UI
>>>>>>
>>>>>> Hence the bug seems to occur only during self-registration.
>>>>>>
>>>>>> Would you mind opening an issue
>>>>>> on
>>>>>>
>>>>>> https://issues.apache.org/jira/browse/SYNCOPE/
>>>>>>
>>>>>> ?
>>>>> Hi,
>>>>> I have just committed a fix for SYNCOPE-992 (the issue you've opened
>>>>> as request above, thx).
>>>>>
>>>>> Such fix will be available with release of Apache Syncope 2.0.2;
>>>>> should you want to backport the fix on your local project, you will
>>>>> have to
>>>>>
>>>>> 1. create the directory
>>>>>
>>>>> enduser/src/main/java/org/apache/syncope/client/enduser/resources/
>>>>>
>>>>> the download the class
>>>>>
>>>>> https://github.com/apache/syncope/blob/eded0eb3af5b96b513d934f19509bdf4b06e9df0/client/enduser/src/main/java/org/apache/syncope/client/enduser/resources/UserSelfCreateResource.java 
>>>>>
>>>>>
>>>>>
>>>>> in the new created directory
>>>>>
>>>>> 2. replace the file content of
>>>>>
>>>>> enduser/src/main/webapp/app/js/directives/dynamicPlainAttribute.js
>>>>>
>>>>> with the content from
>>>>>
>>>>> https://github.com/apache/syncope/blob/eded0eb3af5b96b513d934f19509bdf4b06e9df0/client/enduser/src/main/resources/META-INF/resources/app/js/directives/dynamicPlainAttribute.js 
>>>>>
>>>>>
>>>>>
>>>>> Afterwards, naturally, you'll have to rebuild & redeploy.
>>>>>
>>>>> Regards.

--
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/


Loading...