Skip to content

Management Utility hostname fields validation rejects hyphens and allows invalid characters #5190

@DavidBoike

Description

@DavidBoike

Symptoms

When adding a ServiceControl/Audit instance, the HostName field does not allow typing a dash (-), which is a perfectly valid character for a hostname, but does allow other invalid characters such as /[]|. The only way to get a dash into the field is to paste it in from the clipboard.

Typing - will nto work but typing any of /[]| does.

Who's affected

Verified that users of service control 6.7.6 and higher are affected.

Root cause

Invalid nesting of the controls in the XAML hierarchy.

Confirmed workarounds

Paste the value from the clipboard.

Expected behavior

The field should allow typing any character that is valid in a hostname, and disallow characters that are not.

Steps to reproduce

  1. Try to create new ServiceControl + Audit instances
  2. Attempt to type - into the host name field.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions