-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rocketchat webhook payload without "payload=" #9869
base: main
Are you sure you want to change the base?
Conversation
Since this has been part of the module for many years (basically since its inception in 2016: ansible/ansible@20ea765), I guess that RocketChat's behavior changed over time. Since RocketChat can be self-hosted, this looks like a breaking change to me that needs some mechanism so it also works with older versions of RocketChat. Pinging the last person to contribute (a64df65) to this module, @mmslkr, who might be still using it as well. |
Another PR with the same change came up: #9882 I looked a bit at Rocket.Chat, and my guess is that RocketChat/Rocket.Chat@263a7cb caused this change. That commit ended up in Rocket.Chat 7.4.0 (and all its release candidates). Looking at https://github.com/RocketChat/Rocket.Chat/pull/34999/files#diff-ed9bdef3b65986a40ddc3a005e5b490e513df772ca3398c8f55f8e0460d90760R245, I think the current syntax is still fine once the Can someone try to change the module to instead send the For that, the line |
@felixfontein I tried making it work with your suggestions around adding the header. But I couldn't end up with a working solution. Instead, I made a new commit in my branch which basically uses the new syntax by default and falls back to the old one if it failed. I assume that it doubles the number of queries but we can assume the majority of Rocket Chat users will upgrade to at least Rocket Chat 7.4.0 in the coming year as per Rocket Chat deprecating version policy, therefore the fallback should not be used anymore or by very few people by then. |
It looks like they removed the code that handles that in RocketChat/Rocket.Chat#35183. I have no idea why it's called a regression; it should rather be called a breaking change and mentioned in the changelog. |
#9882 is kinda moving faster. May I suggest we consolidate our efforts in that PR? (And close this one) |
SUMMARY
Rocketchat webhook does not need to have
payload={{data}}
as payload but only data directly as payload.ISSUE TYPE
COMPONENT NAME
rocketchat
ADDITIONAL INFORMATION