[midPoint] REST user create and user template

midpoint at mybtinternet.com midpoint at mybtinternet.com
Fri Jul 31 19:02:05 CEST 2015


Hi,
  I have a user template that generates, among other things, the name and fullName attribute values based
  on givenName and familyName. When creating a user through the UI and supplying only those 2 values,
  the user is successfully created with name and familyName.
  If I do the same using REST and XML, this fails with:
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
org.apache.cxf.interceptor.Fault: Object name must not be null or empty.
#------------------
<user xmlns='http://midpoint.evolveum.com/xml/ns/public/common/common-3'>
        <givenName>Donald</givenName>
        <familyName>Duck</familyName>
</user>
#------------------
  In this case, it seems the user template was not used. If I do add a name field, the fullName is generated
  as expected. Would this be a bug on enhancement request? Btw, 3.1.1 ... maybe this was already fixed in
  new development?
Regards,
  Anton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20150731/2e2e48cb/attachment.htm>


More information about the midPoint mailing list