Skip to content

Reject whitespace-only values in ExternalInvocationTaskValidator - #4346

Open
gilisd wants to merge 1 commit into
flowable:mainfrom
gilisd:fix/external-invocation-task-blank-validation
Open

gilisd wants to merge 1 commit into
flowable:mainfrom
gilisd:fix/external-invocation-task-blank-validation

Conversation

@gilisd

@gilisd gilisd commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Fixes #4345

The required-field checks in ExternalInvocationTaskValidator now use StringUtils.isNotBlank / isBlank instead of length() > 0 / isEmpty. This applies to the HTTP task (requestMethod, requestUrl, value and expression), the DMN task (decision table and decision service key), the case task (caseDefinitionKey), the send event task (eventType, channelKey) and the external worker task (topic).

For the external worker task, a whitespace-only topic works technically: a worker can acquire jobs with topic " ", because ExternalWorkerJobAcquireBuilderImpl only checks for null. I still consider it undesirable, because in a UI one blank topic cannot be told apart from another.

Check List:

  • Unit tests: YES
  • Documentation: NA

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ExternalInvocationTaskValidator accepts whitespace-only values for required fields

1 participant