Closed gabritgtg closed 1 year ago
Thanks for the report! I currently managed to reproduce it locally, I'm working on a unit test and then trying to fix it. I believe you properly pointed at the issue with that findFirst
, thanks!
Hey @gabritgtg, this has been fixed in 8.3.1, which has been released, thank you so much for reporting this!
Thanks to everyone for the fast replay. You are a great team :)
Describe the bug
In the [commit https://github.com/Unleash/unleash-client-java/commit/78a0d33358bb375d6abe8d08de60f704a12961a6](feat: strategy variants) has been introduced a bug. When retrieving the toggle enabled strategies it is returned only the first. In case of multiple strategy the the toggle will result disabled even when the context is valid.
See into class
src/main/java/io/getunleash/DefaultUnleash.java
Steps to reproduce the bug
Expected behavior
When calling the method
isEnabled
with context that meet one of the strategy should expecttrue
as responseLogs, error output, etc.
No response
Screenshots
No response
Additional context
No response
Unleash version
Subscription type
Enterprise
Hosting type
Hosted by Unleash
SDK information (language and version)
java, 8.3.0 ( introduced in this commit-78a0d33358bb375d6abe8d08de60f704a12961a6)