Content Published webhook on Multicultural site results in wrong payload or null #18635
Replies: 4 comments
-
Thanks @DeadMonkeyX , I was able to reproduce it on 15.2.1 |
Beta Was this translation helpful? Give feedback.
-
Hi everyone. While I understand the reasoning here, the implications of sending out variant payloads can be quite severe. Not to mention very functionally breaking. Imagine for example a setup with three languages and two segments (per language). A (re)publish of all languages would trigger six webhook deliveries, instead of the current single delivery. This is not a bug, as the functionality is working as intended. However, I would really appreciate some inputs on this from the community. Therefore, I'm going to move this one to the Discussions section. |
Beta Was this translation helpful? Give feedback.
-
Off the top of my head I can think of three ways to solve this:
The third option might sound immediately most appealing. The biggest downside as I can tell is that we'll be introducing something that is definitively not part of the Delivery API output, which could potentially cause issues on the consumer side when webhooks and the Delivery API are used in conjunction. |
Beta Was this translation helpful? Give feedback.
-
We're currently investigating a fourth option, which is to change the webhook payload format somewhat. Instead of passing the default language variant, we'll pass an array containing all variants. In the interest of keeping the payload size down, it will likely be possible to omit the actual content (the document properties) from the payload by configuration. Since this will be a behaviourally breaking change, we'll also look into making this an opt-in thing for a while. And likely also an opt-out thing as well, in a grace period towards eventually letting the new format take over completely. |
Beta Was this translation helpful? Give feedback.
-
Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)
15.2.0
Bug summary
When publishing content in the non-default culture the webhook payload is either the expected payload for the default culture or
null
Specifics
No response
Steps to reproduce
2.1 that has

Allow vary by culture
2.2 I have also set this doctype to

Allow at root
5.1 Check webhook response and it looks fine

6.1 Check webhook response and this is the "wrong" response

Expected result / actual result
I expect to get the content publish response from the Spanish page, However, I'm getting the English one (see steps to reproduce)
I have also experienced getting a
null
in the webhook payload, but I cannot consistently reproduce that behaviorThis item has been added to our backlog AB#49859
Beta Was this translation helpful? Give feedback.
All reactions