[jbosstools-issues] [JBoss JIRA] (JBIDE-10966) domain and appnames must only be lowercase

Andre Dietisheim (JIRA) jira-events at lists.jboss.org
Thu Feb 23 07:14:37 EST 2012


    [ https://issues.jboss.org/browse/JBIDE-10966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670243#comment-12670243 ] 

Andre Dietisheim commented on JBIDE-10966:
------------------------------------------

the validation was also added to the client:

https://github.com/bdecoste/openshift-java-client/commit/a1045afe2280ae0a013bf9db329c69d5e7dc7ef1

{code}
	protected void validateApplicationName(final String name)
			throws OpenShiftException {

		for (int i = 0; i < name.length(); ++i) {
			if (!Character.isLetterOrDigit(name.charAt(i))) {
				throw new InvalidNameOpenShiftException(
						"Application name \"{0}\" contains non-alphanumeric characters.", name);
			} else if (Character.isUpperCase(name.charAt(i))) {
				throw new InvalidNameOpenShiftException(
						"Application name \"{0}\" contains uppercase letters (only lowercase allowed)", name);
			}
		}
	}

	protected void validateDomainName(final String name) throws OpenShiftException {

		for (int i = 0; i < name.length(); ++i) {
			if (!Character.isLetterOrDigit(name.charAt(i))) {
				throw new InvalidNameOpenShiftException(
						"Domain name \"{0}\" contains non-alphanumeric characters", name);
			} else if (Character.isUpperCase(name.charAt(i))) {
				throw new InvalidNameOpenShiftException(
						"Domain name \"{0}\" contains uppercase letters (only lowercase allowed)", name);
			}
		}
	}
{code}


                
> domain and appnames must only be lowercase
> ------------------------------------------
>
>                 Key: JBIDE-10966
>                 URL: https://issues.jboss.org/browse/JBIDE-10966
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>            Reporter: Max Rydahl Andersen
>            Assignee: Max Rydahl Andersen
>            Priority: Blocker
>             Fix For: 3.3.0.Beta1, 3.3.0.CR1
>
>         Attachments: JBIDE-10966-domain-and-app-names.patch, JBIDE-10966.patch
>
>
> openshift team requested we ensure all creation of domain and app names are lowercased.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list