Skip to content

Commit

Permalink
Prevent class with empty Java package being trusted by SpecificDatumR…
Browse files Browse the repository at this point in the history
…eader (#3311)
  • Loading branch information
MichalFoksa authored Feb 14, 2025
1 parent d5a0ebd commit 3455827
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ private void checkSecurity(Class clazz) throws ClassNotFoundException {
break;
}
}
if (!found) {
throw new SecurityException("Forbidden " + clazz
+ "! This class is not trusted to be included in Avro schema using java-class. Please set org.apache.avro.SERIALIZABLE_PACKAGES system property with the packages you trust.");
}
}
if (!found) {
throw new SecurityException("Forbidden " + clazz
+ "! This class is not trusted to be included in Avro schema using java-class. Please set org.apache.avro.SERIALIZABLE_PACKAGES system property with the packages you trust.");
}
}

Expand Down

0 comments on commit 3455827

Please sign in to comment.