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

multivalued connector configuration attribute in itsm connector stopped working

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.9
    • 3.9.1, 4.0.1, 4.1
    • None
    • None
    • Active subscription

    Description

      for paying customer AVAST

       

      worked ok in 3.7-support

      exception:

      ERROR (com.evolveum.midpoint.web.component.progress.ProgressPanel): Error executing changes.
      java.lang.IllegalStateException: Attempt to get single value from property

      {http://midpoint.evolveum.com/xml/ns/public/connector/builtin-1/bund le/com.evolveum.midpoint.provisioning.ucf.impl.builtin.connector.manual.itsm/JiraManualConnector}

      ticketAttributes with multiple values
      at com.evolveum.midpoint.prism.PrismProperty.getValue(PrismProperty.java:117)
      at com.evolveum.midpoint.prism.PrismProperty.getRealValue(PrismProperty.java:174)
      at com.evolveum.midpoint.provisioning.ucf.api.connectors.AbstractManagedConnectorInstance.applyConfigurationToConfigurationClass(Abstra
      ctManagedConnectorInstance.java:204)
      at com.evolveum.midpoint.provisioning.ucf.api.connectors.AbstractManagedConnectorInstance.configure(AbstractManagedConnectorInstance.ja
      va:154)
      at com.evolveum.midpoint.provisioning.impl.ConnectorManager.configureConnector(ConnectorManager.java:293)
      at com.evolveum.midpoint.provisioning.impl.ConnectorManager.getConfiguredConnectorInstance(ConnectorManager.java:167)
      at com.evolveum.midpoint.provisioning.impl.ResourceManager.getConfiguredConnectorInstance(ResourceManager.java:1293)
      at com.evolveum.midpoint.provisioning.impl.ProvisioningContext.getConnectorInstance(ProvisioningContext.java:302)
      at com.evolveum.midpoint.provisioning.impl.ProvisioningContext.getConnector(ProvisioningContext.java:220)
      at com.evolveum.midpoint.provisioning.impl.ResourceObjectConverter.checkForAddConflicts(ResourceObjectConverter.java:337)
      at com.evolveum.midpoint.provisioning.impl.ResourceObjectConverter.addResourceObject(ResourceObjectConverter.java:263)
      at com.evolveum.midpoint.provisioning.impl.ShadowCache.addShadowAttempt(ShadowCache.java:562)
      at com.evolveum.midpoint.provisioning.impl.ShadowCache.addShadow(ShadowCache.java:504)
      at com.evolveum.midpoint.provisioning.impl.ProvisioningServiceImpl.addObject(ProvisioningServiceImpl.java:293)
      at com.evolveum.midpoint.model.impl.lens.ChangeExecutor.addProvisioningObject(ChangeExecutor.java:1523)
      at com.evolveum.midpoint.model.impl.lens.ChangeExecutor.executeAddition(ChangeExecutor.java:1339)
      at com.evolveum.midpoint.model.impl.lens.ChangeExecutor.executeDelta(ChangeExecutor.java:940)
      at com.evolveum.midpoint.model.impl.lens.ChangeExecutor.executeChanges(ChangeExecutor.java:325)
      at com.evolveum.midpoint.model.impl.lens.Clockwork.lambda$processSecondary$0(Clockwork.java:657)
      at com.evolveum.midpoint.model.impl.lens.ClockworkMedic.partialExecute(ClockworkMedic.java:174)
      at com.evolveum.midpoint.model.impl.lens.ClockworkMedic.partialExecute(ClockworkMedic.java:154)
      at com.evolveum.midpoint.model.impl.lens.Clockwork.processSecondary(Clockwork.java:655)
      at com.evolveum.midpoint.model.impl.lens.Clockwork.click(Clockwork.java:489)

       

      configuration snippet:

      <resource <resource  xmlns:apti="http://midpoint.evolveum.com/xml/ns/public/common/api-types-3" xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:gen386="http://prism.evolveum.com/xml/ns/public/debug" xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3" xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3" xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cap="http://midpoint.evolveum.com/xml/ns/public/resource/capabilities-3" xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3" oid="jira-onboard-resource"> <name>JIRA onboarding</name> <description>Resource for adding super tickets for onboarding</description> <operationalState> <lastAvailabilityStatus>up</lastAvailabilityStatus> </operationalState>
      <connectorRef oid="jira-manual-connector" type="c:ConnectorType"/>
      <connectorConfiguration xmlns:conf="http://midpoint.evolveum.com/xml/ns/public/connector/builtin-1/bundle/com.evolveum.midpoint.provisioning.ucf.impl.builtin.connector.manual.itsm/JiraManualConnector"> <conf:jiraUrl>$(JIRAResource.jiraUrl)</conf:jiraUrl> <conf:username>$(JIRAResource.username)</conf:username> <conf:password>$(JIRAResource.password)</conf:password> <conf:project>$(JIRAResource.project)</conf:project> <conf:issueType>$(JIRAResource.issueType)</conf:issueType> <conf:ticketAttributes>components=$(JIRAResource.onboarding.onboardingComponent)</conf:ticketAttributes> <conf:ticketAttributes>assignee={"key":"$attributesMap.get( "userLocalItGroup" )","name":"$attributesMap.get( "userLocalItGroup" )"}</conf:ticketAttributes> <conf:summaryTemplate>Onboarding of new employee $attributesMap.get( "userFullName" ) to date $attributesMap.get( "effectiveStartDate" )</conf:summaryTemplate>

      Attachments

        Activity

          People

            oskar.butovic@ami.cz Oskar Butovič
            oskar.butovic@ami.cz Oskar Butovič
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: