fix: Switched reference from package name to plugin name (#9916)
This commit is contained in:
parent
b2855ccf77
commit
9af1f4c9f4
|
|
@ -307,7 +307,7 @@ public class PluginServiceCEImpl extends BaseService<PluginRepository, Plugin, S
|
|||
return
|
||||
datasourceMono
|
||||
.flatMap(datasource -> this.findById(datasource.getPluginId())
|
||||
.map(Plugin::getPackageName));
|
||||
.map(plugin -> plugin.getPluginName() == null ? plugin.getPackageName() : plugin.getPluginName()));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -423,7 +423,8 @@ public class AuthenticationServiceCEImpl implements AuthenticationServiceCE {
|
|||
integrationDTO.setInstallationKey(installationKey);
|
||||
integrationDTO.setAuthenticationResponse(oAuth2.getAuthenticationResponse());
|
||||
integrationDTO.setScope(oAuth2.getScope());
|
||||
integrationDTO.setPluginName(plugin.getPackageName());
|
||||
integrationDTO.setPluginName(plugin.getPluginName());
|
||||
integrationDTO.setPluginVersion(plugin.getVersion());
|
||||
|
||||
WebClient.Builder builder = WebClient
|
||||
.builder()
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ public class ImportExportApplicationServiceCEImpl implements ImportExportApplica
|
|||
return pluginRepository
|
||||
.findAll()
|
||||
.map(plugin -> {
|
||||
pluginMap.put(plugin.getId(), plugin.getPackageName());
|
||||
pluginMap.put(plugin.getId(), plugin.getPluginName() == null ? plugin.getPackageName() : plugin.getPluginName());
|
||||
return plugin;
|
||||
})
|
||||
.then(applicationMono)
|
||||
|
|
@ -452,7 +452,8 @@ public class ImportExportApplicationServiceCEImpl implements ImportExportApplica
|
|||
|
||||
return pluginRepository.findAll()
|
||||
.map(plugin -> {
|
||||
pluginMap.put(plugin.getPackageName(), plugin.getId());
|
||||
final String pluginReference = plugin.getPluginName() == null ? plugin.getPackageName() : plugin.getPluginName();
|
||||
pluginMap.put(pluginReference, plugin.getId());
|
||||
return plugin;
|
||||
})
|
||||
.then(organizationService.findById(organizationId, AclPermission.ORGANIZATION_MANAGE_APPLICATIONS))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user