You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a major change, and should be tagged for version 2.2.
Currently, the behaviour is:
<createValues/>
If:
* no <forceValues/> are specified,
* no values are read from the source, and
* a new entry is being added,
THEN the attribute will be created with values from <createValues/>
<defaultValues/>
If:
* no <forceValues/> are specified,
* no values are read from the source, and
* the attribute doesn't yet exist in the destination,
THEN it is created in an existing entry with values from <defaultValues/>
Here is a problematic use case:
set up a createValues with a fixed userPassword string
build another attribute, for example hashedPassword = sha(userPassword). This implies to define userPassword as source fetched attribute.
The fixed userPassword string won't be taken in consideration because userPassword has been declared as a source attribute.
I propose to remove the condition: no values are read from the source.
To obtain the same behaviour, admins can simply use javascript to test the presence of the source attribute:
srcBean.getDatasetFirstValueById("userPassword");
The text was updated successfully, but these errors were encountered:
This is a major change, and should be tagged for version 2.2.
Currently, the behaviour is:
Here is a problematic use case:
The fixed userPassword string won't be taken in consideration because userPassword has been declared as a source attribute.
I propose to remove the condition:
no values are read from the source
.To obtain the same behaviour, admins can simply use javascript to test the presence of the source attribute:
The text was updated successfully, but these errors were encountered: