From: Krzysztof B. <kb...@un...> - 2016-10-21 09:17:11
|
Hi Sander, W dniu 20.10.2016 o 12:44, Sander Apweiler pisze: > Hi, > > I want to change the value type of email attribute from string into > verifiableEmail. When I submit the changes I got an error that at least > one attribute is in conflict with it. The stack trace from log file is > attached. Has anyone a hint for me? > Unfortunately this direction is not easy. verifiableEmail holds a complex information as attribute values. Usually you see only the sole email value, but it is also stored whether it was confirmed, when, how many confirmation requests were sent. Therefore simple upcasting of String to vEmail won't work. One approach would be to create a new verifiableEmail-type attribute and use REST API to transform. It should be also possible to create a JSON dump, tweak it and reimport, but this is really fragile operation, requiring good testing on a test instance... If you don't mind waiting you can open a ticket for this - we can implement better special handling for attribute type changes: if the current approach of basic type cast does not work, we can try to perform export to text representation and parse it. Of course such fallback can loose some information but should work in the typical cases. Best, Krzysztof |