Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-163220

Multiple notifications when using object actions

Details

    • 4

    Description

      When adding a user or Object, Liferay sends more than one request to the webhook URL.

      Creating a user

      Steps to reproduce:

      • Go to Control Panel > Object > Objects
      • Select view from the user option menu
      • Go to actions
      • Create 3 actions:
        • Webhook after add
        • Webhook after update
        • Webhook after delete
      • Go to Control Panel > Users and Organizations
      • Create a new user

      Expected result

      Recieve only one "OnAfterAdd" request with all the information of the new user

      Actual result

      Receiving 4 request (1 "OnAfterAdd" and 3 "OnAfterUpdate"). Each request adds/update a little information about the user.

      If the user only creates a webhook for "OnAfterAdd" will receive only one request with incomplete information.

      The same happens when deleting a user. Liferay sends 2 request, one "OnAfterUpdate" and one "OnAfterDelete"

       

      Creating an object

      Steps to reproduce:

      • Go to Control Panel > Object > Objects
      • Add an Object definition
      • Go to actions
      • Create 3 actions:
        • Webhook after add
        • Webhook after update
        • Webhook after delete
      • Go to the previous object definition
      • Create a new object

      Expected result

      Receive only one "OnAfterAdd" request with all the object information

      Actual result

      Receiving two requests: one "OnAfterAdd" request and one "OnAfterUpdate" with different information

      Notes:
      The same problem happens when we create add and update triggers in groovy scripts

      Attachments

        1. image-2022-01-24-20-47-36-748.png
          156 kB
          Mariana Huggins
        2. image-2022-01-24-21-08-47-313.png
          115 kB
          Mariana Huggins

        Issue Links

          Activity

            People

              support-lep@liferay.com SE Support
              luismiguel.barco Luis Miguel Barcos
              Rafaela Nascimento Rafaela Nascimento
              Carolina Barbosa Carolina Barbosa
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                27 weeks ago

                Packages

                  Version Package