[
https://issues.apache.org/jira/browse/HADOOP-19315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17892739#comment-17892739
]
ASF GitHub Bot commented on HADOOP-19315:
-----------------------------------------
steveloughran commented on code in PR #7128:
URL: https://github.com/apache/hadoop/pull/7128#discussion_r1816391775
##########
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/TestText.java:
##########
@@ -344,6 +344,8 @@ public void testConcurrentEncodeDecode() throws Exception{
@Test
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.io.Text");
Review Comment:
see comment above
##########
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:
make the property name a constant somewhere in hadoop-common tests and refer
to it in both places
> 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]