<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>Hi Anton,<br> <br> it is a bug. I created <a data-mce-href="https://jira.evolveum.com/browse/MID-2503" href="https://jira.evolveum.com/browse/MID-2503" target="_blank">Jira</a> . It will be fixed in the next release.</div><div><br></div><div>Regards,</div><div>Katarina </div><div><br></div><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>midpoint@mybtinternet.com<br><b>To: </b>"midpoint" <midpoint@lists.evolveum.com><br><b>Sent: </b>Friday, July 31, 2015 7:02:05 PM<br><b>Subject: </b>[midPoint] REST user create and user template<br><div><br></div>Hi,<br><div><br></div> I have a user template that generates, among other things, the name and fullName attribute values based<br> on givenName and familyName. When creating a user through the UI and supplying only those 2 values,<br> the user is successfully created with name and familyName.<br><div><br></div> If I do the same using REST and XML, this fails with:<br>2015-07-31 17:12:01,022 [] [http-bio-127.0.0.1-8080-exec-30] WARN (org.apache.cxf.phase.PhaseInterceptorChain): Application {http://impl.model.midpoint.evolveum.com/}ModelRestService has thrown exception, unwinding now<br>org.apache.cxf.interceptor.Fault: Object name must not be null or empty.<br><div><br></div>#------------------<br><user xmlns='http://midpoint.evolveum.com/xml/ns/public/common/common-3'><br> <givenName>Donald</givenName><br> <familyName>Duck</familyName><br></user><br>#------------------<br><div><br></div> In this case, it seems the user template was not used. If I do add a name field, the fullName is generated<br> as expected. Would this be a bug on enhancement request? Btw, 3.1.1 ... maybe this was already fixed in<br> new development?<br><div><br></div>Regards,<br> Anton<br><div><br></div><br><div><br></div>_______________________________________________<br>midPoint mailing list<br>midPoint@lists.evolveum.com<br>http://lists.evolveum.com/mailman/listinfo/midpoint<br></div><div><br></div></div></body></html>