-
Notifications
You must be signed in to change notification settings - Fork 23
Description
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.