-
Notifications
You must be signed in to change notification settings - Fork 40.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bootBuildImage runs forever when a custom image name is used and the tag contains an illegal character #39246
Comments
See also #35657. |
Thanks, @ilozano2. Is the plan for https://github.com/pivotal-cf/vmware-app-analyzer/issues/240 to include a |
@wilkinsona In fact, it isn't. Docker images don't support that character in the TAG. We are following a different format. No rush here then, but it could be nice to fail without freezing. |
…ter in tag - Simplify regular expression checking for validity of Image Reference to fix Catastrophic Backtracking for long custom images with illegal characters in tag spring-projects#39246
…n tag - Simplify regular expression checking for validity of Image Reference to fix Catastrophic Backtracking for long custom images with illegal characters in tag spring-projects#39246
- Simplify regular expression checking for validity of Image Reference to fix Catastrophic Backtracking for long custom images with illegal characters in tag spring-projects#39246
- Simplify regular expression checking for validity of Image Reference to fix Catastrophic Backtracking for long custom images with illegal characters in tag spring-projects#39246
- Simplify regular expression checking for validity of Image Reference to fix Catastrophic Backtracking for long custom images with illegal characters in tag spring-projects#39246
- Simplify regular expression checking for validity of Image Reference to fix Catastrophic Backtracking for long custom images with illegal characters in tag spring-projects#39246
- Simplify regular expression checking for validity of Image Reference to fix Catastrophic Backtracking for long custom images with illegal characters in tag spring-projects#39246
Closing in favor of #39617 |
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(...)
freezesTests: 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).The text was updated successfully, but these errors were encountered: