Skip to content

SplitClient in local mode permits invalid split names #114

@swimmingdale

Description

@swimmingdale

SplitClient permits using split names that are considered invalid in split.io SAAS.
Can be reproduced by adding split name 1.0.0-feature in the yml file like this:
- 1.0.0-feature: treatment: "on"
And then you can build the SplitClient:
SplitClientConfig config = SplitClientConfig.builder() .splitFile("src/main/resources/split-file-config.yml").build();
This will be successful.
While trying to create a split with that name in split.io UI will produce an error like this:
"Please rename your split. Split names must start with a letter and can contain "-_ a-z A-Z 0-9"

How It should be:
One shouldn't be able to create a SplitClient with invalid split names in local mode through yml file.
An exception should be thrown.

I hit this issue by first using the local mode then migrated to using the networked mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions