From: Sander A. <sa....@fz...> - 2016-10-27 08:39:30
|
Hi Krzysztof, thanks for the information. Copy the values with REST API is working fin for me. Is there a possibility to get a list of all used entity ids via REST API? I'm working on an script which copy the attribute for all users and I want to avoid a long for loop with status code check. Best regards, Sander Am Freitag, den 21.10.2016, 11:17 +0200 schrieb Krzysztof Benedyczak: > 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 ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------ Forschungszentrum Juelich GmbH 52425 Juelich Sitz der Gesellschaft: Juelich Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender), Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt, Prof. Dr. Sebastian M. Schmidt ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------ |