Harden marketplace listing and debug smoke errors
This commit is contained in:
@@ -1532,6 +1532,13 @@ func (svc *CoreService) ListMarketplacePlugins(filter domain.PluginMarketplaceFi
|
||||
if filter.Keyword != "" && !marketplacePluginMatchesKeyword(projected, filter.Keyword) {
|
||||
continue
|
||||
}
|
||||
// The registry can outlive a manifest contract. Do not let a historical
|
||||
// plugin with removed capabilities make the usable marketplace entries
|
||||
// fail as one invalid response; it is still available through the plugin
|
||||
// registry for an explicit refresh or migration.
|
||||
if err := validator.ValidatePluginMarketplacePlugin(projected); err != nil {
|
||||
continue
|
||||
}
|
||||
items = append(items, projected)
|
||||
}
|
||||
if err := validator.ValidatePluginMarketplacePlugins(items); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user