Skip to content

Cloud name validation regex and error message inconsistent #9

Description

@lfielke

When trying to log into at https://cspote.neustar.biz/onexus/cloudPage an error message is shown if an "invalid" cloud name is entered:

Cloudname should begin with '=' , it should not have any spaces or '*' and it should not end with a '.'

The validation regex (net.respectnetwork.csp.application.manager.RegistrationManager#CloudNameRegEx) is inconsistent with these rules. Eg:

  • =entrée arguably should be valid according to the error message but doesn't pass the regex
  • =mc-hammer passes the validation regex, but - are not mentioned in the message

I'm not sure what the actual validation rules are, but it doesn't look very pretty at the moment.

Also the error message has a space before the first comma, which is probably a typo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions