-
Notifications
You must be signed in to change notification settings - Fork 2.4k
[Backport] [2.x] Ensure Jackson default maximums introduced in 2.16.0 do not conflict with OpenSearch settings (#11811) #11871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
9456bb3cdd0f79f91a5f730a1b1bb041a380c91f |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fd441d574a71e7d10a4f73de6609f881d8cdfeec |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
02a16efeb840c45af1e2f31753dfe76795278b73 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
9456bb3cdd0f79f91a5f730a1b1bb041a380c91f |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
9456bb3cdd0f79f91a5f730a1b1bb041a380c91f |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1be7098dccc079171464dca7e386bd8df623b031 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
c4ddbc5277670f2e56b1f5e44e83afa748bcb125 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
8e4f1923d73cd55f2b4c0d56ee4ed80419297354 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
*/ | ||
|
||
package org.opensearch.common.xcontent; | ||
|
||
import com.fasterxml.jackson.core.StreamReadConstraints; | ||
|
||
import org.opensearch.common.annotation.InternalApi; | ||
|
||
/** | ||
* Consolidates the XContent constraints (primarily reflecting Jackson's {@link StreamReadConstraints} constraints) | ||
* | ||
* @opensearch.internal | ||
*/ | ||
@InternalApi | ||
public interface XContentContraints { | ||
final String DEFAULT_MAX_STRING_LEN_PROPERTY = "opensearch.xcontent.string.length.max"; | ||
final String DEFAULT_MAX_NAME_LEN_PROPERTY = "opensearch.xcontent.name.length.max"; | ||
final String DEFAULT_MAX_DEPTH_PROPERTY = "opensearch.xcontent.depth.max"; | ||
|
||
final int DEFAULT_MAX_STRING_LEN = Integer.parseInt( | ||
System.getProperty(DEFAULT_MAX_STRING_LEN_PROPERTY, Integer.toString(Integer.MAX_VALUE) /* no limit */ ) | ||
); | ||
|
||
final int DEFAULT_MAX_NAME_LEN = Integer.parseInt( | ||
System.getProperty(DEFAULT_MAX_NAME_LEN_PROPERTY, Integer.toString(Integer.MAX_VALUE) /* no limit */ ) | ||
); | ||
|
||
final int DEFAULT_MAX_DEPTH = Integer.parseInt( | ||
System.getProperty(DEFAULT_MAX_DEPTH_PROPERTY, Integer.toString(Integer.MAX_VALUE) /* no limit */ ) | ||
); | ||
} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fd441d574a71e7d10a4f73de6609f881d8cdfeec |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
02a16efeb840c45af1e2f31753dfe76795278b73 |
Uh oh!
There was an error while loading. Please reload this page.