Can't set a default value for a place holder after upgrading to version 14.5 (Spring 5.1.7)

Description

Up to version 14.2 (Spring 4.3.17) there was an option to set a default value for a placeholder located in the sla.xml or pu.xml
After upgrading to 14.5, the deployment failed with the following Spring Exception:

Deploying [PlaceHolderTest-1.0-SNAPSHOT.jar] with name [PlaceHolderTest-1.0-SNAPSHOT] under groups [yuval-pc] and locators [jini://yuval-pc:4174/]
Error deploying [-properties, embed://numberOfPartitions=2, /Users/yuval/Workspace/xap-support/PlaceHolderTest/target/PlaceHolderTest-1.0-SNAPSHOT.jar]:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SLA': Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'int' for property 'numberOfInstances'; nested exception is java.lang.NumberFormatException: For input string: "${numberOfPartitions:10}"

When the placeholder is in the sal.xml the exception is raised in the cli.
When the placeholder is in the pu.xml the exception is raised in the GSC log.

After removing the "10" e.g:number-of-instances="${numberOfPartitions}" the deployment of 2,1 succeeded. PlaceHolderTest project is attached.
Reproduction:
1. run mvn install
2. start the grid:
./gs.sh host run-agent --manager --gsc=2
3. run the deploy command:
./gs.sh --cli-version=1 deploy -properties embed://numberOfPartitions=2 /Users/yuval/Workspace/xap-support/PlaceHolderTest/target/PlaceHolderTest-1.0-SNAPSHOT.jar

Workaround

None

Status

Assignee

Yohana Khoury

Reporter

Yuval Dori

Labels

None

Priority

Critical

SalesForce Case ID

12554, 12540

Fix versions

None

Commitment Version/s

None

Due date

None

Product

None

Edition

Premium

Platform

All