Skip to content

Commit

Permalink
throw exception on path+version not found when decoding request (#8357)
Browse files Browse the repository at this point in the history
  • Loading branch information
chickenlj committed Jul 27, 2021
1 parent bfa4b3b commit ca794b6
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -162,10 +162,7 @@ public static void checkSerialization(String path, String version, Byte id) thro
ServiceRepository repository = ApplicationModel.getServiceRepository();
ProviderModel providerModel = repository.lookupExportedServiceWithoutGroup(path + ":" + version);
if (providerModel == null) {
if (logger.isWarnEnabled()) {
logger.warn("Serialization security check is enabled but cannot work as expected because " +
"there's no matched provider model for path " + path + ", version " + version);
}
throw new IOException("Service " + path + " with version " + version + " not found, invocation rejected.");
} else {
List<URL> urls = providerModel.getServiceConfig().getExportedUrls();
if (CollectionUtils.isNotEmpty(urls)) {
Expand Down

0 comments on commit ca794b6

Please sign in to comment.