Skip to content
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

[JBIDE-21698] fix image name parsing #962

Merged
merged 1 commit into from Feb 18, 2016
Merged

[JBIDE-21698] fix image name parsing #962

merged 1 commit into from Feb 18, 2016

Conversation

fbricon
Copy link
Member

@fbricon fbricon commented Feb 17, 2016

Signed-off-by: Fred Bricon fbricon@gmail.com

Pattern tagPattern = Pattern.compile("^(.+?)(?::([^:/]+))?$");
Matcher matcher = tagPattern.matcher(fullName);
if (!matcher.matches()) {
throw new IllegalArgumentException(fullName + " is not a proper image name ([registry/][repo][:port]");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Though usage in validator seems to ensure that this should not happen, this exception formally should be caught by the validator to return error status.

Signed-off-by: Fred Bricon <fbricon@gmail.com>
@fbricon fbricon merged commit a09a222 into jbosstools:jbosstools-4.3.x Feb 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants