Bug 435718 - Many incoming webooks are not displayed
Summary: Many incoming webooks are not displayed
Status: RESOLVED FIXED
Alias: None
Product: Ruqola
Classification: Applications
Component: frontend (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Laurent Montel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-14 10:56 UTC by Angel Docampo
Modified: 2024-02-21 21:18 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
wehook on RC (71.57 KB, image/png)
2021-04-14 10:56 UTC, Angel Docampo
Details
how incoming webhooks are shown on ruqola (33.33 KB, image/png)
2021-04-14 10:57 UTC, Angel Docampo
Details
ruqola showing partial text of the incoming webhook (29.86 KB, image/png)
2021-04-14 10:58 UTC, Angel Docampo
Details
ruqola showing content of trello incoming webhooks removing the link from hyperlinks (10.78 KB, image/png)
2021-04-14 11:00 UTC, Angel Docampo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Angel Docampo 2021-04-14 10:56:48 UTC
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
Comment 1 Angel Docampo 2021-04-14 10:57:15 UTC
Created attachment 137589 [details]
how incoming webhooks are shown on ruqola
Comment 2 Angel Docampo 2021-04-14 10:58:35 UTC
Created attachment 137590 [details]
ruqola showing partial text of the incoming webhook
Comment 3 Angel Docampo 2021-04-14 11:00:07 UTC
Created attachment 137591 [details]
ruqola showing content of trello incoming webhooks removing the link from hyperlinks
Comment 4 Laurent Montel 2021-04-14 11:28:29 UTC
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.
Comment 5 Angel Docampo 2021-04-14 12:26:09 UTC
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"
    }
}
Comment 6 Laurent Montel 2021-05-03 11:55:21 UTC
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
Comment 7 Laurent Montel 2024-02-21 21:18:08 UTC
I think it's ok now in 2.1
Please reopen if bug is still here.