Created attachment 137588 [details] wehook on RC SUMMARY We have many incoming webhooks from other services notifying the status of each service (e.g: rundeck, taiga, monit, etc) On ruqola some of them, those which are plain text, seems to work just fine, but there are others which aren't displayed at all, I can just see the bot's name as if it was posting something, but there is nothing or the incoming hook is incomplete. (see attachments) STEPS TO REPRODUCE 1. Configure an incoming webhook for any service, let's say rundeck, netdata, taiga, etc 2. Trigger the webhook OBSERVED RESULT Ruqola doesn't show the content of the webhook in many cases, or just a partial content EXPECTED RESULT Ruqola should show the content of the webhook, at least the plain text part and hyperlinks, there is no need to show images, videos or another fancy stuff, but the text and links are a bare minimal
Created attachment 137589 [details] how incoming webhooks are shown on ruqola
Created attachment 137590 [details] ruqola showing partial text of the incoming webhook
Created attachment 137591 [details] ruqola showing content of trello incoming webhooks removing the link from hyperlinks
Use " export RUQOLA_LOGFILE=log_ruqola_file ruqola &" it will log info in files. I need info about line I need to know which type of info we have for theses lines for looking if we can implement it.
Do you want the files? I can send them to you, but I'm putting here the text for a completely empty incoming webhook. empty content: (sorry, this bugtracking has no markdown support like gitlab) Received: Message:{ "_id": "Yj3wcLPi2xfr2Gc65", "_updatedAt": { "$date": 1617087956309 }, "alias": "", "attachments": [ { "channel": "#notifications", "color": "warning", "fallback": "Started: RunDeck Job Notification:", "fields": [ { "short": true, "title": "Job Name", "value": "<https://rundeck.newlotusweb.net/project/eonian/job/show/ac162ac0-2c51-45a8-a737-b9e419404362|Affiliation/Esmeralda / Deploy Special Affiliation Oraculum for Esmeralda FR>" }, { "short": true, "title": "Project", "value": "eonian" }, { "short": true, "title": "Status", "value": "Started" }, { "short": true, "title": "Execution ID", "value": "<https://rundeck.newlotusweb.net/project/eonian/execution/follow/3724|#3,724>" }, { "short": true, "title": "Options", "value": "N/A" }, { "short": true, "title": "Started By", "value": "jordi.vilar" } ], "icon_emoji": ":rundeck:", "title": "RunDeck Job Started", "ts": "1970-01-01T00:00:00.000Z" } ], "bot": { "i": "CHRkkKgywmGAfG8FD" }, "channels": [ ], "groupable": false, "mentions": [ ], "msg": "", "parseUrls": false, "rid": "EGpqR23fNnjsTHua4", "ts": { "$date": 1617082008028 }, "u": { "_id": "rocket.cat", "name": "Rocket.Cat", "username": "rocket.cat" } } This other is for one showing partially some text Received: Message:{ "_id": "bGPfZkAePkiCjEKPZ", "_updatedAt": { "$date": 1618402509618 }, "alias": "Taiga (Angel Docampo)", "attachments": [ { "color": "warning", "fallback": "*status:* from *Initial tests* to *Done*", "fields": [ { "short": true, "title": "status", "value": "*From* Initial tests *to* Done" } ], "mrkdwn_in": [ "fields", "title", "fallback" ], "ts": "1970-01-01T00:00:00.000Z" } ], "bot": { "i": "nQnpkCztSqnGAXJhj" }, "channels": [ ], "groupable": false, "mentions": [ ], "msg": "Changed User Story: *<https://tasks.eoniantec.com/project/angeldocampo-operations/us/26|#26: Buy more RAM for the PVE Cluster>*", "parseUrls": false, "rid": "mLkrwMQaQ4uYtxvj8", "ts": { "$date": 1618402509599 }, "u": { "_id": "rocket.cat", "name": "Rocket.Cat", "username": "rocket.cat" }, "unread": true } And this other is for one removing the links from hyperlinks, or at least, clicking on them does nothing, and in order to show the message, I have to click first on the"eye" icon. Received: Message:{ "_id": "zc2ZEfMBffRgqC6Wz", "_updatedAt": { "$date": 1617876860729 }, "alias": "Héctor Rovira", "attachments": [ { "color": "#FF0000", "text": "Card moved: \"[test1](https://trello.com/c/qErZFThk)\" from list \"TO-DO reunion' to 'Assigned-Waiting'\n", "title": "Campagne Manager", "title_link": "https://trello.com/b/63TFCh20", "ts": "1970-01-01T00:00:00.000Z" } ], "avatar": "https://trello-members.s3.amazonaws.com/5d5bf5371f5d565e44d66d72/cefb7644e18a16b25531e09d2d6a5d22/170.png", "bot": { "i": "aAqQRxwHoexx5MzJM" }, "channels": [ ], "groupable": false, "mentions": [ ], "msg": "", "parseUrls": false, "rid": "EGpqR23fNnjsTHua4", "ts": { "$date": 1617874423534 }, "u": { "_id": "rocket.cat", "name": "Rocket.Cat", "username": "rocket.cat" } }
Git commit 216919f9dc36ae577ed33eee44417dcbffa682ea by Laurent Montel. Committed on 03/05/2021 at 11:54. Pushed by mlaurent into branch 'master'. Add autotest for bug-435718 A +46 -0 src/core/autotests/data/messages/message-bug-435718-2.json A +21 -0 src/core/autotests/data/messages/message-bug-435718-2.ref A +68 -0 src/core/autotests/data/messages/message-bug-435718-3.json A +21 -0 src/core/autotests/data/messages/message-bug-435718-3.ref A +36 -0 src/core/autotests/data/messages/message-bug-435718.json A +30 -0 src/core/autotests/data/messages/message-bug-435718.ref M +3 -0 src/core/autotests/messagetest.cpp https://invent.kde.org/network/ruqola/commit/216919f9dc36ae577ed33eee44417dcbffa682ea
I think it's ok now in 2.1 Please reopen if bug is still here.