You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 | 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.
The text was updated successfully, but these errors were encountered:
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
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:
rollout/lib/rollout/feature.rb
Line 14 in 0b07edf
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.
The text was updated successfully, but these errors were encountered: