Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

prepare 5.6.0 release #242

Merged
merged 997 commits into from
Jul 2, 2021
Merged

prepare 5.6.0 release #242

merged 997 commits into from
Jul 2, 2021

Conversation

LaunchDarklyCI
Copy link
Contributor

[5.6.0] - 2021-07-02

Added:

  • The builder() method in FeatureFlagsState, for creating instances of that class (most likely useful in test code). (#234)

Fixed:

  • If you called the LDClient constructor with an SDK key that contained a character less than 0x20 or greater than 0x7e, it would throw an IllegalArgumentException that contained the full SDK key string in its message. Since the string might contain a real key (if for instance the application had read the SDK key from configuration data that included a newline character, and neglected to trim the newline), exposing the value in an exception message that might end up in a log was a security risk. This has been changed so that the exception message only says the key contains an invalid character, but does not include the value. (The underlying exception behavior is part of the OkHttp library, so be aware that if you inject any custom headers with illegal characters into your HTTP configuration, their values might still be exposed in this way.)
  • In polling mode, the SDK would attempt to reconnect to the LaunchDarkly streaming service even if it received an HTTP 401 error. It should reconnect for other errors such as 503, but 401 indicates that the SDK key is invalid and a retry cannot succeed; the SDK did have logic to permanently stop the connection in this case, but it was not working. (This is equivalent to the bug that was fixed in 5.5.1, but for polling mode.)
  • Fixed documentation comments for FileData to clarify that you should not use offline mode in conjunction with FileData; instead, you should just turn off events if you don't want events to be sent. Turning on offline mode will disable FileData just as it disables all other data sources. (#235)

eli-darkly added 30 commits May 22, 2020 13:32
(5.0) move flag change stuff into FlagTracker facade, simplify value listener
# Conflicts:
#	benchmarks/src/jmh/java/com/launchdarkly/client/FlagData.java
#	benchmarks/src/jmh/java/com/launchdarkly/client/TestValues.java
#	benchmarks/src/jmh/java/com/launchdarkly/sdk/server/EventProcessorBenchmarks.java
#	benchmarks/src/jmh/java/com/launchdarkly/sdk/server/LDClientEvaluationBenchmarks.java
#	benchmarks/src/jmh/java/com/launchdarkly/sdk/server/TestValues.java
# Conflicts:
#	benchmarks/src/jmh/java/com/launchdarkly/sdk/server/TestValues.java
robertjneal and others added 26 commits April 20, 2021 12:51
…github.com:launchdarkly/java-server-sdk-private into rneal/ch101658/add-support-for-experiment-rollouts
…for-experiment-rollouts

Add support for experiment rollouts
…ic-for-isExperiment

simlpify the logic and make it match node/.Net sdks
protect against NPEs if flag/segment JSON contains a null value
# Conflicts:
#	src/test/java/com/launchdarkly/sdk/server/DataModelSerializationTest.java
#289)

* update to okhttp-eventsource patch for stream retry bug, improve test

* add test for appropriate stream retry
* add public builder for FeatureFlagsState

* javadoc fixes
# Conflicts:
#	src/main/java/com/launchdarkly/sdk/server/integrations/FileData.java
@eli-darkly eli-darkly requested a review from bwoskow-ld July 2, 2021 21:47
@LaunchDarklyCI LaunchDarklyCI merged commit 6585f90 into master Jul 2, 2021
@LaunchDarklyCI LaunchDarklyCI deleted the release-5.6.0 branch July 2, 2021 22:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants