Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-3251

When account references resource which references connector that has been upgraded, linkref is removed from user

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.4 LTS (Heisenberg)
    • Fix Version/s: 3.4.1, 3.5 (Einstein)
    • Component/s: None
    • Labels:
      None

      Description

      1. there is resource with CSV connector 1.4.0.49
      2. there is user having account on that CSV resource
      3. midPoint is upgraded, so CSV connector is also upgraded (JAR file) and the original Connector object is still in repository, a new Connector object is in repository after midPoint start (after upgrade)
      4. edit user with the resource from 1.
      5. the account will be unlinked when the projection is expanded, because the connector referenced from the CSV resource cannot be found

      Workaround: do not click the users until properly migrated the resources (change connectorRef to point to new Connector object)

        Issue Links

          Activity

          Hide
          vix Ivan Noris added a comment -
          2016-06-23 12:33:40,814 [] [http-bio-8080-exec-10] ERROR (com.evolveum.midpoint.provisioning.ucf.impl.ConnectorFactoryIcfImpl): Failed to instantiate connector: ICF com.evolveum.polygon.csvfile.CSVF
          ileConnector v1.4.0.49 (OID:bbaf70f6-2f44-480f-9bee-2561fe3de4a8)
          2016-06-23 12:33:41,864 [] [http-bio-8080-exec-10] ERROR (com.evolveum.midpoint.provisioning.ucf.impl.ConnectorFactoryIcfImpl): Failed to instantiate connector: ICF com.evolveum.polygon.csvfile.CSVF
          ileConnector v1.4.0.49 (OID:bbaf70f6-2f44-480f-9bee-2561fe3de4a8)
          2016-06-23 12:33:41,880 [] [http-bio-8080-exec-10] ERROR (com.evolveum.midpoint.model.impl.lens.ChangeExecutor): Error executing changes for (account (default) on resource:10000000-9999-9999-0000-a0
          00ff000002(CSV-1 (Simulated App 1))): The classes (JAR) of connector: ICF com.evolveum.polygon.csvfile.CSVFileConnector v1.4.0.49 (OID:bbaf70f6-2f44-480f-9bee-2561fe3de4a8) were not found by the ICF
           framework; bundle=com.evolveum.polygon.connector-csvfile connector type=com.evolveum.polygon.csvfile.CSVFileConnector, version=1.4.0.49
          com.evolveum.midpoint.util.exception.ObjectNotFoundException: The classes (JAR) of connector: ICF com.evolveum.polygon.csvfile.CSVFileConnector v1.4.0.49 (OID:bbaf70f6-2f44-480f-9bee-2561fe3de4a8) were not found by the ICF framework; bundle=com.evolveum.polygon.connector-csvfile connector type=com.evolveum.polygon.csvfile.CSVFileConnector, version=1.4.0.49
                  at com.evolveum.midpoint.provisioning.consistency.impl.ObjectNotFoundHandler.handleError(ObjectNotFoundHandler.java:295) [provisioning-impl-3.4-SNAPSHOT.jar:na]
                  at com.evolveum.midpoint.provisioning.impl.ShadowCache.handleError(ShadowCache.java:724) [provisioning-impl-3.4-SNAPSHOT.jar:na]
                  at com.evolveum.midpoint.provisioning.impl.ShadowCache.addShadow(ShadowCache.java:397) [provisioning-impl-3.4-SNAPSHOT.jar:na]
                  at com.evolveum.midpoint.provisioning.impl.ProvisioningServiceImpl.addObject(ProvisioningServiceImpl.java:349) [provisioning-impl-3.4-SNAPSHOT.jar:na]
          
          Show
          vix Ivan Noris added a comment - 2016-06-23 12:33:40,814 [] [http-bio-8080-exec-10] ERROR (com.evolveum.midpoint.provisioning.ucf.impl.ConnectorFactoryIcfImpl): Failed to instantiate connector: ICF com.evolveum.polygon.csvfile.CSVF ileConnector v1.4.0.49 (OID:bbaf70f6-2f44-480f-9bee-2561fe3de4a8) 2016-06-23 12:33:41,864 [] [http-bio-8080-exec-10] ERROR (com.evolveum.midpoint.provisioning.ucf.impl.ConnectorFactoryIcfImpl): Failed to instantiate connector: ICF com.evolveum.polygon.csvfile.CSVF ileConnector v1.4.0.49 (OID:bbaf70f6-2f44-480f-9bee-2561fe3de4a8) 2016-06-23 12:33:41,880 [] [http-bio-8080-exec-10] ERROR (com.evolveum.midpoint.model.impl.lens.ChangeExecutor): Error executing changes for (account ( default ) on resource:10000000-9999-9999-0000-a0 00ff000002(CSV-1 (Simulated App 1))): The classes (JAR) of connector: ICF com.evolveum.polygon.csvfile.CSVFileConnector v1.4.0.49 (OID:bbaf70f6-2f44-480f-9bee-2561fe3de4a8) were not found by the ICF framework; bundle=com.evolveum.polygon.connector-csvfile connector type=com.evolveum.polygon.csvfile.CSVFileConnector, version=1.4.0.49 com.evolveum.midpoint.util.exception.ObjectNotFoundException: The classes (JAR) of connector: ICF com.evolveum.polygon.csvfile.CSVFileConnector v1.4.0.49 (OID:bbaf70f6-2f44-480f-9bee-2561fe3de4a8) were not found by the ICF framework; bundle=com.evolveum.polygon.connector-csvfile connector type=com.evolveum.polygon.csvfile.CSVFileConnector, version=1.4.0.49 at com.evolveum.midpoint.provisioning.consistency.impl.ObjectNotFoundHandler.handleError(ObjectNotFoundHandler.java:295) [provisioning-impl-3.4-SNAPSHOT.jar:na] at com.evolveum.midpoint.provisioning.impl.ShadowCache.handleError(ShadowCache.java:724) [provisioning-impl-3.4-SNAPSHOT.jar:na] at com.evolveum.midpoint.provisioning.impl.ShadowCache.addShadow(ShadowCache.java:397) [provisioning-impl-3.4-SNAPSHOT.jar:na] at com.evolveum.midpoint.provisioning.impl.ProvisioningServiceImpl.addObject(ProvisioningServiceImpl.java:349) [provisioning-impl-3.4-SNAPSHOT.jar:na]
          Hide
          vix Ivan Noris added a comment -

          Tested with v3.5devel-251-gcc89fb7 with the following "simulation" of connector upgrade:
          1. user has account on CSV resource, all works
          2. ConnectorType object for CSV is manually modified in repository, appending "X" to both connectorName and connectorVersion (making it invalid)
          3. resource test connection throws error (Expected): 2016-09-02 14:06:04,712 [] [http-bio-8080-exec-1] ERROR (com.evolveum.midpoint.provisioning.ucf.impl.ConnectorFactoryIcfImpl): Failed to instantiate connector: ICF com.evolveum.polygon.csvfile.CSVFileConnector v1.4.2.0x (OID:25de7401-d671-403a-b1b0-b7606c3001d8)
          4. click on user, Projections - account is displayed with only repository stored attributes + error message
          5. the account is not unlinked (which is OK)

          Show
          vix Ivan Noris added a comment - Tested with v3.5devel-251-gcc89fb7 with the following "simulation" of connector upgrade: 1. user has account on CSV resource, all works 2. ConnectorType object for CSV is manually modified in repository, appending "X" to both connectorName and connectorVersion (making it invalid) 3. resource test connection throws error (Expected): 2016-09-02 14:06:04,712 [] [http-bio-8080-exec-1] ERROR (com.evolveum.midpoint.provisioning.ucf.impl.ConnectorFactoryIcfImpl): Failed to instantiate connector: ICF com.evolveum.polygon.csvfile.CSVFileConnector v1.4.2.0x (OID:25de7401-d671-403a-b1b0-b7606c3001d8) 4. click on user, Projections - account is displayed with only repository stored attributes + error message 5. the account is not unlinked (which is OK)

            People

            • Assignee:
              vix Ivan Noris
              Reporter:
              vix Ivan Noris
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: