UI sending empty string instead of null for plugin properties

Description

To reproduce:

1. Add DB source to canvas

2. Delete value for number of splits

3. Validate. The backend will complain with:

'numSplits' is invalid: Value of field numSplits is null or empty. It should be a number.

It looks like when you put a value into a field (or if it starts with a default value), then remove the value, the UI is sending the property with an empty string as the value instead of not sending the property at all. This matters to the backend because an empty string is different than a null, and causes it to choke on numeric properties.

Release Notes

None

Activity

Show:
Ajai Narayanan
February 26, 2021, 7:35 PM

6.4 -

Albert Shau
February 23, 2021, 11:21 PM

This error does not happen when you deploy the pipeline, only when you validate the stage.

Albert Shau
February 23, 2021, 11:08 PM

This is not an issue on 6.2.3 or 6.2.1, so marked as a regression and therefore a blocker.

Fixed
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Ajai Narayanan

Reporter

Albert Shau

Labels