String Array Parameter Discrepancy in PRPC7.2.1 vs PRPC6.2SP2
We are seeing differing javascript behavior between 6.2SP2 and 7.2.1 when passing string arrays as parameters.
At a high level (see attachment for more info), the function called has a value mapped to the string array in the following format:
overridereasons[0] = "string";
The javascript function, instead of mapping the entire value to a single string array instance, breaks each character into a separate instance:
RequestObject.overrideReasons[0] = "s"
RequestObject.overrideReasons[1] = "t"
RequestObject.overrideReasons[2] = "r"...
The javascript function that performs the mapping is shown below:
JS Script sample:
function LaunchSupervisorOverride (SO_endpoint,transitID, applicationID, displayname, overridereasons, messagetypestring, messagedescriptionstring, operatorID, locale)
{
…
RequestObject={};
RequestObject.refId = new Date().getTime().toString();
RequestObject.displayName = displayname;
RequestObject.overrideReasons = [];
…
for (var i in overridereasons) {
RequestObject.overrideReasons[i]= overridereasons[i];
}