Skip to content

Commit

Permalink
Check stream version
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Sep 19, 2024
1 parent a2fb0fd commit 758b671
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/src/main/java/org/opensearch/plugins/PluginInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,11 @@ public PluginInfo(final StreamInput in) throws IOException {
this.customFolderName = in.readString();
this.extendedPlugins = in.readStringList();
this.hasNativeController = in.readBoolean();
this.requestedActions = Settings.readSettingsFromStream(in);
if (in.getVersion().onOrAfter(Version.V_2_18_0)) {
this.requestedActions = Settings.readSettingsFromStream(in);
} else {
this.requestedActions = Settings.EMPTY;
}
}

@Override
Expand Down

0 comments on commit 758b671

Please sign in to comment.