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

"CustomXXXObjectClass" being passed as ObjectClass when calling sync in connector

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Reviewed
    • Affects Version/s: 4.1
    • Fix Version/s: 4.2
    • Component/s: ConnId
    • Labels:
    • Subscription:
      Active subscription

      Description

      Hi, 

      not sure whether this is a bug, or me doing something wrong. We have a custom connector for syncing HCM data (employee, org, company/location data). I define the objectclasses.

      The Organisation for example:

      public static final String OBJECTCLASS_ORGANISATION = "Organisation";
      
      private static void initOrgSchema(SchemaBuilder schemaBuilder) {
      ... attributeinfo definitions
      
      ObjectClassInfoBuilder ocib = new ObjectClassInfoBuilder();
      ocib.setType(OBJECTCLASS_ORGANISATION);
      ocib.addAllAttributeInfo(orgAttributes);
      
      schemaBuilder.defineObjectClass(ocib.build());
      }

      Which then gets converted to CustomOrganisationObjectClass in midPoint.

      However, midPoint isn't stripping the "Custom" prefix and "ObjectClass" suffix when calling sync, so an ObjectClass.is(OBJECTCLASS_ORGNISATION) is returning false and thus giving me this error when attempting to run LiveSync:

      Unspecified error: Got unexpected exception: java.lang.IllegalArgumentException: Invalid objectclass 'CustomOrganisationObjectClass

      It can't be the job of the connector to strip out these values as they are midPoint specific.

      Any help greatly appreciated. I can work around it by not doing an equals comparison, but contains - but this is ugly.

      Thanks in advance,

      Chris

       

       

       

        Attachments

          Activity

            People

            Assignee:
            chris83527 Chris Woods
            Reporter:
            chris83527 Chris Woods
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: