Skip to content

bootBuildImage runs forever when a custom image name is used and the tag contains an illegal character #39246

@ilozano2

Description

@ilozano2

Spring Boot Version: 3.2.1

Issue

Given a image reference <hostname>/<library>/<artifact>:1.0.0+1.2.3
When the length of or is long, the method ImageReference.of(...) freezes

Tests: 30c4bd1

Related: #23115

TL;DR

Internally, the Regex.PATH generated is ^[a-z0-9]+(?:(?:(?:[._]|__|[-]*)[a-z0-9]+)+)?(?:(?:[\/][a-z0-9]+(?:(?:(?:[._]|__|[-]*)[a-z0-9]+)+)?)+)?$ which will report a Catastrophic Backtracking (you can see it in regex101 for example).

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: supersededAn issue that has been superseded by another

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions