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

Commit 63e3092

Browse files
prepare 5.1.0 release (#210)
1 parent bfa1d5f commit 63e3092

File tree

8 files changed

+1211
-92
lines changed

8 files changed

+1211
-92
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ This is a major rewrite that introduces a cleaner API design, adds new features,
8080
- The Redis integration is no longer built into the main SDK library. See: https://github.com/launchdarkly/java-server-sdk-redis
8181
- The deprecated New Relic integration has been removed.
8282

83+
## [4.14.3] - 2020-09-03
84+
### Fixed:
85+
- Bump SnakeYAML from 1.19 to 1.26 to address CVE-2017-18640. The SDK only parses YAML if the application has configured the SDK with a flag data file, so it's unlikely this CVE would affect SDK usage as it would require configuration and access to a local file.
86+
8387
## [4.14.2] - 2020-09-01
8488
### Fixed:
8589
- Updated the version of OkHttp contained within the SDK from 3.12.10 to 3.14.9, to address multiple [known issues](https://square.github.io/okhttp/changelog_3x/) including an incompatibility with OpenJDK 8.0.252 under some conditions. ([#204](https://github.com/launchdarkly/java-server-sdk/issues/204))

src/main/java/com/launchdarkly/sdk/server/PollingProcessor.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,10 @@ private void poll() {
9696
} else {
9797
if (dataSourceUpdates.init(allData.toFullDataSet())) {
9898
dataSourceUpdates.updateStatus(State.VALID, null);
99-
logger.info("Initialized LaunchDarkly client.");
100-
initialized.getAndSet(true);
101-
initFuture.complete(null);
99+
if (!initialized.getAndSet(true)) {
100+
logger.info("Initialized LaunchDarkly client.");
101+
initFuture.complete(null);
102+
}
102103
}
103104
}
104105
} catch (HttpErrorException e) {

src/main/java/com/launchdarkly/sdk/server/integrations/FileData.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@
66
* The file data source allows you to use local files as a source of feature flag state. This would
77
* typically be used in a test environment, to operate using a predetermined feature flag state
88
* without an actual LaunchDarkly connection. See {@link #dataSource()} for details.
9-
*
9+
* <p>
10+
* This is different from {@link TestData}, which allows you to simulate flag configurations
11+
* programmatically rather than using a file.
12+
*
1013
* @since 4.12.0
14+
* @see TestData
1115
*/
1216
public abstract class FileData {
1317
/**

0 commit comments

Comments
 (0)