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

Notification does not display any attributes during role member recompute

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0.1
    • 4.1, 4.0.3
    • None
    • Internal

    Description

      1. users have Internal Employee role assigned
      2. I modify the Internal Employee role to contain a new inducement for other role
      3. I recompute role members (GUI: Roles / All roles / click on Role / Members / Recompute icon)
      4. the notifications are sent as follows:

      User: James Bradley (X000035, oid fa81511f-9583-4059-ab7d-620b88876936)
      Notification created on: Tue Oct 15 12:58:11 CEST 2019
      
      Resource: New Corporate Directory (oid 3961ffc8-2209-11e8-8018-7738b0ea3fa2)
      
      An account has been successfully created on the resource with attributes:
       - Entry UUID: 6c1d22f2-8386-1039-9ed5-07d8820a53b8
       - Distinguished Name: uid=X000035,ou=people,dc=example,dc=com
       - E-mail Address: james.bradley@example.com
       - Login Name: X000035
       - Employee Type: EMP
       - description: Created by midPoint
       - Surname: Bradley
       - Given Name: James
       - Common Name: James Bradley
       - Password:
          - Value: (protected string)
       - Administrative status: ENABLED
      
      
      
      Requester: midPoint Administrator (administrator)
      Channel: http://midpoint.evolveum.com/xml/ns/public/gui/channels-3#user
      
      ', attachmentsCount: 0
      
      ============================================ 
      ============================================ 
      Tue Oct 15 12:58:11 CEST 2019
      Message{to='[idm@example.com]', cc='[]', bcc='[]', subject='[IDM] SUCCESS: User MODIFY operation succeeded for X000035', contentType='null', body='Notification about user-related operation (status: SUCCESS)
      
      User: James Bradley (X000035, oid fa81511f-9583-4059-ab7d-620b88876936)
      Notification created on: Tue Oct 15 12:58:11 CEST 2019
      
      The user record was modified. Modified attributes are:
      
      Requester: midPoint Administrator (administrator)
      Channel: http://midpoint.evolveum.com/xml/ns/public/gui/channels-3#user
      
      ', attachmentsCount: 0
      

      Notice the "Modified attributes are:" is empty.

      The simple user notifier configuration is:

              <handler>
                  <simpleUserNotifier>
                      <recipientExpression>
                          <value>idm@example.com</value>
                      </recipientExpression>
                      <subjectExpression>
                          <script xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xsi:type="c:ScriptExpressionEvaluatorType">
                              <code>
      if (event.isSuccess())
      	tmpText = "[IDM] SUCCESS: User " + event.getChangeType() + " operation succeeded for "
      else if (event.isFailure())
      	tmpText = "[IDM] ERROR: User " + event.getChangeType() + " operation failed for "
      else  tmpText = "[IDM] IN PROGRESS: User " + event.getChangeType() + " operation in progress for "
      
      tmpText + requestee?.getName()?.getOrig()
      </code>
                          </script>
                      </subjectExpression>
                      <transport>mail</transport>
                  </simpleUserNotifier>
              </handler>
      

      Attachments

        Activity

          People

            vix Ivan Noris
            vix Ivan Noris
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: