mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-11 16:58:38 +00:00
fix: added io.collate to allowed consumer packages (#21278)
This commit is contained in:
parent
b24c9f7ce3
commit
7314b33d5e
@ -42,8 +42,9 @@ public class EventSubscriptionMapper
|
||||
|
||||
private String validateConsumerClass(String className) {
|
||||
// Validate that the class belongs to our application package
|
||||
if (!className.startsWith("org.openmetadata.")) {
|
||||
throw new BadRequestException("Only classes from org.openmetadata package are allowed");
|
||||
if (!className.startsWith("org.openmetadata.") && !className.contains("io.collate.")) {
|
||||
throw new BadRequestException(
|
||||
"Only classes from org.openmetadata or io.collate packages are allowed: " + className);
|
||||
}
|
||||
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user