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

Multiple notifications when using object actions

    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

        Issue Links

          Activity

            People

            Assignee:
            carolina.barbosa Carolina Barbosa
            Reporter:
            luismiguel.barco Luis Miguel Barcos
            Participants of an Issue:
            Recent user:
            Felipe Lins
            Engineering Assignee:
            Carolina Barbosa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              29 weeks, 1 day ago

                Packages

                Version Package