0
Fixed

Uncaught exception when configuring an empty DN template

Matthew Clark 11 years ago updated by anonymous 9 years ago 2

It is possible to throw the below exception (same one as seen in IDB-1036) in the following scenarios:

  • Committing an empty DN template search box and hitting Save
  • Clicking on the little cross that appears when you mouse over a short template

The error is

System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: Value cannot be null.
Parameter name: value (Fault Detail is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is: System.ArgumentNullException: Value cannot be null.
Parameter name: value at System.Xml.Linq.XAttribute..ctor(XName name, Object value)
at Unify.Product.IdentityBroker.TemplateDistinguishedName.ToXml(String template)
at Unify.Product.IdentityBroker.IdentityServiceCollector.UpdateAdapter(BasicStandardAdapterRemotingConfiguration adapterConfiguration)
at SyncInvokeUpdateAdapter(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)).

Matthew Clark, I have fixed up the validation so that it validates if missing. Could you please confirm through testing a few times, as I also updated the javascript to handle empty text as it was also breaking there?

Thanks.

Confirmed or migrated to VSO.