"A Docker image cannot be built with the spring-boot-maven-plugin:3.4.0 if Docker API version is less than 1.41. In particular, a Spring Boot project builds are failing in Bitbucket pipelines when no 'imagePlatform' option configured for the project with the following error

Using an empty tag in the pom.xml doesn't help as Maven, most probably, assigns an empty string to the corresp. Java property.

The proposed fix is to check the config property for both null and empty string values."

The above is from a pull request that I saw. The question that I was unable to get an answer to was, why would someone be using an API version less than 1.41?

Also in the pull request, the poster says that in particular, Spring Boot project builds are failing when no imagePlatform option is configured. I'm not sure in what scenarios someone would not configure the imagePlatform option. By default, in Spring Boot project builds, is the imagePlatform option not configured? Are people specifically putting an empty tag?

The pull request mentions that due to the empty tag, an empty string is assigned to the tag.

https://github.com/spring-projects/spring-boot/pull/43424/commits/a91745a417ee0354071aaa96ddb8474b6e951577

Due to the code change, empty strings will now return False rather than True. What effect does this change have on Docker, spring-boot-maven, and the general workflow/environment that the pull request is operating in as a whole?

Comment From: philwebb

The PR in question is #43424

@johnasiano I'm not sure I understand what's driving your questions. Are you facing an issue with the fix? I don't know why someone would choose to run a version less than 1.41, but we want to support them if they choose to do so.

Comment From: spring-projects-issues

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Comment From: spring-projects-issues

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.