0
Fixed

Relative DN Type UI breaks If no DN type fields are in the schema

Tony Sheehy 7 years ago • updated by anonymous 3 years ago 4

The following is unhandled:

System.ArgumentException: The parameters dictionary contains a null entry for parameter 'transformationId' of non-nullable type 'System.Guid' for method 'System.Web.Mvc.ActionResult AddDNGenerator(System.Guid, System.Guid)' in 'Unify.Connect.Web.AdapterController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter.
Parameter name: parameters
 at System.Web.Mvc.ActionDescriptor.ExtractParameterFromDictionary(ParameterInfo parameterInfo, IDictionary`2 parameters, MethodInfo methodInfo)
 at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
 at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
 at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
 at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
 at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
 at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12()
 at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
 at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
 at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)
Affected Versions:
Fixed by Version:

Occurs when creating an rdn type dn component when there are no dn fields available.

From Tony:

return RedirectToAction(AddDNGeneratorActionName, new {id});

The parameter should be changed to transformationId = id.

return RedirectToAction(AddDNGeneratorActionName, new

{id}

);

should be

return RedirectToAction(AddDNGeneratorActionName, new

{id, transformationId}

);

This can be confirmed fixed in the next incoming push.

Confirmed and closed