Checked for duplicates
No - I haven't checked
Is this a regression?
No - This is a new bug
Version
4.2.1
Describe the bug
If an activity directive is created and has an invalid value for a parameter with validation and is also missing a value for a required parameter, the result from validateActivityArguments marks the parameter with an invalid value as valid.
Reproduction
- Upload a mission model containing an activity type with at least 1 parameter that contains value validation and at least 1 other parameter that is marked as required.
- Create a plan
- Create a directive from the activity type
- Enter an invalid value for the parameter with validation and leave the required parameter(s) empty
- No errors will be shown on the parameter with an invalid value
Logs
Re-created using BakeBananaBread from the Banananation model. Response when tbSugar and glutenFree are empty but temperature is negative (invalid):
Invalid arguments for input type \"BakeBananaBread\": extraneous arguments: [], unconstructable arguments: [], missing arguments: [MissingArgument[parameterName=tbSugar, schema=MetaSchema[metadata={description=MapValue[map={value=StringValue[value=Tablespoons of sugar to add]}], unit=MapValue[map={value=StringValue[value=tbl]}]}, target=IntSchema[]]], MissingArgument[parameterName=glutenFree, schema=BooleanSchema[]]], valid arguments: [ValidArgument[parameterName=temperature, serializedValue=NumericValue[value=350.0]]]
System Info
Severity
Minor
Checked for duplicates
No - I haven't checked
Is this a regression?
No - This is a new bug
Version
4.2.1
Describe the bug
If an activity directive is created and has an invalid value for a parameter with validation and is also missing a value for a required parameter, the result from
validateActivityArgumentsmarks the parameter with an invalid value as valid.Reproduction
Logs
Re-created using
BakeBananaBreadfrom the Banananation model. Response whentbSugarandglutenFreeare empty buttemperatureis negative (invalid):System Info
Severity
Minor