[jbosstools-issues] [JBoss JIRA] (JBIDE-25126) Server adapter editor: validate debug-key, debug-port-key fields

Andre Dietisheim (JIRA) issues at jboss.org
Thu Sep 28 09:27:00 EDT 2017


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

Andre Dietisheim commented on JBIDE-25126:
------------------------------------------

The rules are printed out by the OpenShift REST API if you post invalid values:
{code}
start with alphabetic character or '_', followed by a string of alphanumeric characters or '_' (e.g. 'my_name', or 'MY_NAME', or 'MyName', regex used for validation is '[A-Za-z_][A-Za-z0-9_]*'
{code}
I implemented those rules when trying to solve JBIDE-25108: https://github.com/jbosstools/jbosstools-openshift/pull/1575/files#diff-bd1eb4f175d69710a67c665ebafe96ddR20

> Server adapter editor: validate debug-key, debug-port-key fields
> ----------------------------------------------------------------
>
>                 Key: JBIDE-25126
>                 URL: https://issues.jboss.org/browse/JBIDE-25126
>             Project: Tools (JBoss Tools)
>          Issue Type: Enhancement
>          Components: openshift
>    Affects Versions: 4.5.1.AM2
>            Reporter: Andre Dietisheim
>              Labels: openshift_v3, server_adapter_editor, server_adapter_wizard
>             Fix For: 4.5.x
>
>
> Currently there's no validation (debug port is only required to be a numerical value, keys are free of any constraint) of the keys and values if they're provided. We should validate them.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jbosstools-issues mailing list