Project

General

Profile

Actions

Defect #2097

closed

Cannot copy system which uses remote connector server

Added by Vladimír Kotýnek about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Vít Švanda
Category:
Systems
Target version:
Start date:
03/03/2020
Due date:
% Done:

100%

Estimated time:
Affected versions:
Owner:

Description

When I try to copy a system which uses a remote connector server, the operation fails with following exception:

2020-03-03 15:33:55.957  INFO 24354 --- [task-executor-1] e.b.i.c.m.s.i.DefaultEntityEventManager  : Event [CoreEvent [type: CREATE, content: eu.bcvsolutions.idm.acc.dto.SysSystemDto [code=Copy-of-MySystem], properties: {}]] is completed
2020-03-03 15:33:56.010 ERROR 24354 --- [task-executor-1] e.b.i.c.a.b.action.AbstractBulkAction    : Processing of entity [cd428702-f363-47f6-ab15-0d09293655af] failed.

eu.bcvsolutions.idm.ic.exception.IcInvalidCredentialException: null
        at eu.bcvsolutions.idm.ic.connid.service.impl.ConnIdIcConfigurationService.findRemoteConnectorManager(ConnIdIcConfigurationService.java:275)
        at eu.bcvsolutions.idm.ic.connid.service.impl.ConnIdIcConfigurationService.getRemoteConnIdConnectorInfo(ConnIdIcConfigurationService.java:184)
        at eu.bcvsolutions.idm.ic.connid.service.impl.ConnIdIcConfigurationService.getConnectorConfiguration(ConnIdIcConfigurationService.java:123)
        at eu.bcvsolutions.idm.ic.service.impl.DefaultIcConfigurationFacade.getConnectorConfiguration(DefaultIcConfigurationFacade.java:125)
        at eu.bcvsolutions.idm.acc.service.impl.DefaultSysSystemService.resolveConnectorFormDefinition(DefaultSysSystemService.java:637)
        at eu.bcvsolutions.idm.acc.service.impl.DefaultSysSystemService.getConnectorFormDefinition(DefaultSysSystemService.java:443)
        at eu.bcvsolutions.idm.acc.service.impl.DefaultSysSystemService.duplicate(DefaultSysSystemService.java:488)
        at eu.bcvsolutions.idm.acc.service.impl.DefaultSysSystemService$$FastClassBySpringCGLIB$$1cc82df9.invoke(<generated>)

The stacktrace says there are wrong credentials. The source system's credentials for the remote connector server are correct.

Actions #1

Updated by Radek Tomiška about 4 years ago

  • Assignee changed from Vít Švanda to Ondrej Husník
  • Target version set to 10.2.0
Actions #2

Updated by Vít Švanda about 4 years ago

  • Assignee changed from Ondrej Husník to Vít Švanda
  • % Done changed from 0 to 90

Fixed within developing of export/import feature.

private synchronized IdmFormDefinitionDto resolveConnectorFormDefinition(IdmFormDefinitionDto formDefinition, IcConnectorInstance connectorInstance) {
        IcConnectorConfiguration conf = icConfigurationFacade.getConnectorConfiguration(connectorInstance);
        IcConnectorConfiguration conf = null;
        try {
            conf = icConfigurationFacade.getConnectorConfiguration(connectorInstance);
        }catch(IcRemoteServerException ex) {
            if (formDefinition != null) {
                LOG.info("Connector definition cannot be updated, because connector returns remote-server exception." 
                        + " Exists definition will be used.", ex);

                return formDefinition;
            }
            throw ex;
        }
        if (conf == null) {
            throw new IllegalStateException(MessageFormat.format("Connector with key [{0}] was not found on classpath.",
                    connectorInstance.getConnectorKey().getFullName()));
        }

Actions #3

Updated by Vít Švanda about 4 years ago

  • Status changed from New to In Progress
Actions #4

Updated by Vít Švanda about 4 years ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Vít Švanda to Ondrej Husník
Actions #5

Updated by Ondrej Husník about 4 years ago

  • Status changed from Needs feedback to Resolved
  • Assignee changed from Ondrej Husník to Vít Švanda
  • % Done changed from 90 to 100

Tested. System was successfully cloned.

Actions #6

Updated by Radek Tomiška about 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF