Skip to content

There is no validation when entering a decimal for the container app port #116

@v-mengwe

Description

@v-mengwe

OS: Win10/M1
Build Version: 20220520.7
Regression: Not a Regression

Repro Steps:

  1. Create a container app which port is a decimal, e.g. "2.1".
  2. Check whether there is a validation when entering a decimal for the port.

Expect:
There is a validation when entering a decimal for the port.

Actual:

  1. There is no validation when entering a decimal for the port.
    Screen Shot 2022-05-20 at 17 01 25
  2. Pop up an error when creating a container app which port is a decimal.

Action: containerApps.createContainerApp
Error type: 400
Error Message: {"type":"redacted:url or more validation errors occurred.","status":400,"traceId":"redacted:id","errors":{"$.properties.configuration.ingress.targetPort":["The JSON value could not be converted to System.Nullable`1[System.Int32]. Path: $.properties.configuration.ingress.targetPort | LineNumber: 0 | BytePositionInLine: 294."]}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions