Allow SCIM user update if phoneNumbers is null


Paul Bakare
 

On SCIM update, if phoneNumbers is null, UAA breaks with this error
message, {"message":"Unexpected error","error":"scim"}

Here's the full stack trace:
{"message":"Unexpected
error","error":"scim","trace":"org.cloudfoundry.identity.uaa.scim.exception.ScimException:
Unexpected error\n\tat
org.cloudfoundry.identity.uaa.scim.endpoints.ScimUserEndpoints.handleException(ScimUserEndpoints.java:331)\n\tat
org.cloudfoundry.identity.uaa.scim.endpoints.ScimUserEndpoints$$FastClassBySpringCGLIB$$d564cbce.invoke(
<generated>)\n\tat
org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n\tat
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib
AopProxy.java:708)\n\tat
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)\n\tat
org.springframework.aop.interceptor.ExposeInvocation
Interceptor.invoke(ExposeInvocationInterceptor.java:92)\n\tat
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)\n\tat
org.springframe
work.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:644)\n\tat
org.cloudfoundry.identity.uaa.scim.endpoints.ScimUserEndpoints$$EnhancerBySpringCGLIB$$b124460e.handleException(<generated>)\n\tat
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.