Skip to content
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

CVE Fix: Update json-path version #15772

Merged
merged 13 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,11 @@ public void testJsonPathFunctions() throws IOException
//deviation of [7,8,9] is 1/3, stddev is sqrt(1/3), approximately 0.8165
Assert.assertEquals(0.8165, Double.parseDouble(Iterables.getOnlyElement(row.getDimension("stddev"))), 0.0001);

//append is not supported
Assert.assertEquals(Collections.emptyList(), row.getDimension("append"));
// we do not support json-path append function for ORC format (see https://github.com/apache/druid/pull/11722)
Exception exception = Assert.assertThrows(UnsupportedOperationException.class, () -> {
row.getDimension("append");
});
Assert.assertEquals("Unused", exception.getMessage());
}
Assert.assertEquals(1, actualRowCount);
}
Expand Down
2 changes: 1 addition & 1 deletion licenses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ name: JsonPath
license_category: binary
module: java-core
license_name: Apache License version 2.0
version: 2.3.0
version: 2.9.0
libraries:
- com.jayway.jsonpath: json-path

Expand Down
2 changes: 1 addition & 1 deletion owasp-dependency-check-suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<!-- False positives -->
<suppress>
<notes><![CDATA[
file name: json-path-2.3.0.jar jackson-core-2.12.7.jar
file name: json-path-2.9.0.jar jackson-core-2.12.7.jar
]]></notes>
<cve>CVE-2022-45688</cve>
<cve>CVE-2023-35116</cve>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@
<dependency>
<groupId>com.jayway.jsonpath</groupId>
<artifactId>json-path</artifactId>
<version>2.3.0</version>
<version>2.9.0</version>
</dependency>
<dependency>
<groupId>net.thisptr</groupId>
Expand Down
Loading