Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollout may break when a group with a | character in the name is activated for a feature with additional data #161

Open
gstokkink opened this issue Jan 17, 2022 · 0 comments

Comments

@gstokkink
Copy link

gstokkink commented Jan 17, 2022

To reproduce: define a group with a | character in its name, and activate the group for a feature that has some additional data. Next, check whether the feature is active. You will likely run into a JSON parsing exception.

The offending line:

raw_percentage, raw_users, raw_groups, raw_data = state.split('|', 4)

The | character in the group name causes garbage data to be assigned to the raw_data variable, which is subsequently parsed as JSON on line 18, resulting in the exception.

How to fix: I guess the group names should be serialized somehow. You could also disallow the | character in group names, I guess.

@gstokkink gstokkink changed the title Rollout breaks when a group with a | character in the name is persisted for a feature with data Rollout may break when a group with a | character in the name is activated for a feature with additional data Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant