[
https://issues.apache.org/jira/browse/HADOOP-19315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17892740#comment-17892740
]
ASF GitHub Bot commented on HADOOP-19315:
-----------------------------------------
pjfanning commented on code in PR #7128:
URL: https://github.com/apache/hadoop/pull/7128#discussion_r1816396488
##########
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestPath.java:
##########
@@ -404,6 +404,8 @@ public void testGetName() {
@Test (timeout = 30000)
public void testAvroReflect() throws Exception {
+ // Avro expects explicitely stated, trusted packages used for
(de-)serialization
+ System.setProperty("org.apache.avro.SERIALIZABLE_PACKAGES",
"org.apache.hadoop.fs.Path");
Review Comment:
the property is for package names as opposed to class names - should really
have value like `""org.apache.hadoop.fs"`
##########
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestPath.java:
##########
@@ -404,6 +404,8 @@ public void testGetName() {
@Test (timeout = 30000)
public void testAvroReflect() throws Exception {
+ // Avro expects explicitely stated, trusted packages used for
(de-)serialization
+ System.setProperty("org.apache.avro.SERIALIZABLE_PACKAGES",
"org.apache.hadoop.fs.Path");
Review Comment:
the property is for package names as opposed to class names - should really
have value like `"org.apache.hadoop.fs"`
> Bump avro from 1.9.2 to 1.11.4
> ------------------------------
>
> Key: HADOOP-19315
> URL: https://issues.apache.org/jira/browse/HADOOP-19315
> Project: Hadoop Common
> Issue Type: Task
> Components: build
> Affects Versions: 3.4.0, 3.4.1
> Reporter: Dominik Diedrich
> Priority: Major
> Labels: pull-request-available
>
> We should bump the avro version in the hadoop-project pom.xml from 1.9.2 to
> 1.11.4 in order to fix following CVE's:
> *
> [CVE-2024-47561|https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-47561]
> *
> [CVE-2023-39410|https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-39410]
> I already fixed it locally and can create a PR for that.
> A few classes need to be adjusted, because avro introduced new getter, setter
> methods for some member variables which are now private.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]