[Bug]: Inconsistency between org
field validation in CLI and central
#39723
Labels
Area/CLI-BuildTools
Team/DevTools
Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs )
Type/Bug
Description
According to ballerina central, "Organization name can only contain alphanumeric values with lower case letters and cannot start with numeric values".
However ballerina toml org field validation regex is
^[a-zA-Z0-9_]*$
, which allows any string consisting of zero or more alphanumeric characters or underscores. Note that both upper and lower cases are allowed.Similarly in the CLI commands (eg- pull), we have a validation identical to the toml validation in
ProjectUtils.validateOrgName
method.This can be an issue since the user will not realize that the org name is incompatible with the central validation until he tries to create an org in the central with the same org name as the repo.
Steps to Reproduce
No response
Affected Version(s)
No response
OS, DB, other environment details and versions
No response
Related area
-> Other Area
Related issue(s) (optional)
#39721
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: