[jbosstools-issues] [JBoss JIRA] (JBIDE-21761) Port mapping validation is not correct

Fred Bricon (JIRA) issues at jboss.org
Fri Mar 4 08:52:01 EST 2016


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

Fred Bricon commented on JBIDE-21761:
-------------------------------------

Content assist will have to go in 4.x

Anyways, I think we can do something like :
{code}
if (isNumeric(port)) {
   checkPortRange(port) // range 0-65535
} else {
  doRegexpValidation(port)
}
{code}

> Port mapping validation is not correct
> --------------------------------------
>
>                 Key: JBIDE-21761
>                 URL: https://issues.jboss.org/browse/JBIDE-21761
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.3.1.CR1
>            Reporter: Marián Labuda
>            Assignee: Xavier Coulon
>              Labels: docker, openshift_v3
>             Fix For: 4.3.1.CR1
>
>         Attachments: validation_msg.png
>
>
> In Deploy docker image on the page with port mapping when adding a new port mapping there is a validation error telling that correct format of pod is alphanumeric, what is wrong. See following image.
> !validation_msg.png!
>  There should be allowed only numbers in range 0-65535. It is not only validation message but it allows to create also mapping to port e.g. "abc123" what should not be possible.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the jbosstools-issues mailing list