[
https://issues.jboss.org/browse/JBIDE-25126?page=com.atlassian.jira.plugi...
]
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-b...
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)