DefaultJobParametersConverter throws java.lang.ArrayIndexOutOfBoundsException if input is empty string #4505
Labels
for: backport-to-5.0.x
Issues that will be back-ported to the 5.0.x line
for: backport-to-5.1.x
Issues that will be back-ported to the 5.1.x line
in: core
type: bug
Milestone
Bug description
DefaultJobParamatersConverter
class's privateparseValue(String encodedJobParameter)
method throwsjava.lang.ArrayIndexOutOfBoundsException
if the parameterencodedJobParameter
is null or empty.This causes the batch app started from the command line to not accept empty command line arguments in the format
arg1=
.Environment
Java 17
Spring Boot 3.1.4
Spring Batch 5.0.3
Expected behavior
Job parameter should be null or empty.
Minimal Complete Reproducible example
The text was updated successfully, but these errors were encountered: