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

Configured capability activation/status doesn't work properly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: 4.0.2
    • Fix Version/s: 4.1, 4.0.3
    • Component/s: Model
    • Labels:
    • Subscription:
      Active subscription
    • Backport Version:

      Description

      Resource has:

      <capabilities xmlns:cap="http://midpoint.evolveum.com/xml/ns/public/resource/capabilities-3">
          <configured>
              <cap:pagedSearch/>
              <cap:update>
                  <cap:addRemoveAttributeValues>false</cap:addRemoveAttributeValues>
              </cap:update>
              <cap:activation>
                  <cap:status>
                      <cap:attribute>ri:is_deleted</cap:attribute>
                      <cap:enableValue>false</cap:enableValue>
                      <cap:disableValue>true</cap:disableValue>
                  </cap:status>
              </cap:activation>
          </configured>
      </capabilities> 

      and outbound

      <activation>
          <existence>
              <outbound>           
                  <strength>weak</strength>
                  <expression>
                      <path>$focusExists</path>
                  </expression>
              </outbound>
          </existence>
          <administrativeStatus>
              <outbound>
                  <strength>strong</strength>
                  <expression>
                      <script>
                          <code>
                              import com.evolveum.midpoint.xml.ns._public.common.common_3.ActivationStatusType
      
                              if (legal &amp;&amp; assigned) {
                                  input
                              } else {
                                  ActivationStatusType.DISABLED
                              }
                          </code>
                      </script>
                  </expression>
              </outbound>
          </administrativeStatus>
      </activation> 

      During create/update connector gets:

      _ENABLED_=true instead of is_deleted attribute.

        Attachments

          Activity

            People

            Assignee:
            lazyman Viliam Repan
            Reporter:
            lazyman Viliam Repan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: