Skip to content

GH-5295: Fix parameter value truncation in CommandLineJobOperator#5296

Open
Wordbe wants to merge 1 commit intospring-projects:mainfrom
Wordbe:GH-5295
Open

GH-5295: Fix parameter value truncation in CommandLineJobOperator#5296
Wordbe wants to merge 1 commit intospring-projects:mainfrom
Wordbe:GH-5295

Conversation

@Wordbe
Copy link

@Wordbe Wordbe commented Feb 19, 2026

CommandLineJobOperator.parse() uses String.split("=") without a limit, which splits on every = character. This truncates parameter values that contain = (e.g. URLs with query strings) and throws ArrayIndexOutOfBoundsException for parameters without =.

Replaced with StringUtils.splitArrayElementsIntoProperties, consistent with JobLauncherApplicationRunner and the deprecated CommandLineJobRunner.

Resolves #5295

…JobOperator

CommandLineJobOperator.parse() uses String.split("=") which splits on
every "=" character, causing parameter values containing "=" to be
truncated. Additionally, parameters without "=" cause an
ArrayIndexOutOfBoundsException.

Use StringUtils.splitArrayElementsIntoProperties for consistency with
JobLauncherApplicationRunner and the deprecated CommandLineJobRunner.

Signed-off-by: Wordbe <seonghojin3@gmail.com>
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.

CommandLineJobOperator.parse() truncates parameter values containing '='

1 participant