Uploaded image for project: 'Magnolia Webhooks'
  1. Magnolia Webhooks
  2. MGNLHOOK-261

Asset webhook fires twice

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Neutral
    • None
    • 1.0.0, 2.0.0
    • None

    Description

      Asset publish webhook is firing twice on publish event, it should only fire once.

      Input from partner:

      Also regarding webhooks, I have a webhook listening for mgnl:asset publish and it appears to be triggering twice. I’m trying to diagnose to get you more info because I can’t see anything wrong.
      ^^^
       this is ultimately for a CloudFront cache purge integration. I think I’ve written a CloudFront cache purge about 10 times now so maybe it’s worth a more reusable integration. (edited)

      Determined the issue is not really with webhooks but that for some reason the webhook launcher command is being triggered twice when i click publish once. so onto figuring out why that is happening

      OK actually it is due to the webhook config.
      The webhook module adds a webhook command to both the default-publish and versioned-publish command chains. However, the versioned-publish command chain references the default-publish, causing the webhook to trigger twice.

      I think this is a bug but don’t know off the top of my head how to resolve it other than removing the webhook from default-publish (But then if something uses that you won’t get the webhook…)

       

      Checklists

        Acceptance criteria

        Attachments

          1. AssetToPublish-6.2.33.png
            AssetToPublish-6.2.33.png
            157 kB
          2. AssetToPublish-6.3.png
            AssetToPublish-6.3.png
            232 kB
          3. Definition-6.3.png
            Definition-6.3.png
            135 kB
          4. image-2023-04-21-07-24-56-465.png
            image-2023-04-21-07-24-56-465.png
            69 kB
          5. Screen Shot 2022-10-20 at 9.42.49 PM.png
            Screen Shot 2022-10-20 at 9.42.49 PM.png
            166 kB
          6. WebhooksConfig-6.2.33.png
            WebhooksConfig-6.2.33.png
            123 kB
          7. WHRequestReceived-6.2.33.png
            WHRequestReceived-6.2.33.png
            271 kB
          8. WHRequestReceived-6.3.png
            WHRequestReceived-6.3.png
            302 kB

          Issue Links

            1.
            Implementation Sub-task Completed Dai Ha
            2.
            Review Sub-task Completed Unassigned
            3.
            Pre-Integration QA Sub-task Completed Unassigned
            4.
            QA Sub-task Completed Javier Benito

            Activity

              People

                dai.ha Dai Ha
                czimmermann Christopher Zimmermann
                DeveloperX
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: