Web/Desktop App: Submit/Cancel button in interactive dialog sometimes does not populate channel_id
#23.925 geöffnet am 30. Juni 2023
Repository-Metriken
- Stars
- (32.880 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 6T 5h) (318 gemergte PRs in 30 T)
Beschreibung
https://github.com/mattermost/mattermost/issues/23754
Summary
Mattermost Web/Desktop client sometimes does not populate channel_id field in /dialog/submit a request when clicking on Submit/Cancel button in the interactive dialog.
Steps to reproduce
Open an interactive dialog. Open the browser console (in Chrome: Press F12, Network) Click on the Submit/Cancel button. Check in the console if the channel_id is correctly populated in the request body of /dialog/submit.
Expected behavior
When clicking on the Submit/Cancel button in an interactive dialog, the Mattermost web client sometimes does not populate the channel_id in the /dialog/submit request body. As a result, the Mattermost server responds with a 403 error. Occasionally, opening the post/thread link from which the dialog is invoked in a separate window resolves the issue. This bug has been observed on both Windows/Chrome and Mac/Safari platforms. No such errors have been noticed in the Mattermost mobile app.
Mattermost Version: 7.10.2 Mattermost Desktop Version: 5.3.1 2c3d80f Chrome Version: 114.0.5735.133 Safari Version: 16.5 (18615.2.9.11.4)
Observed behavior
Request from Mattermost Web Client (Chrome - F12 - Network): POST https://mattermost-test.skyeng.tech/api/v4/actions/dialogs/submit
Request body:
{{{ "url":"http://sel-tezis-test.skyeng.link:8888/mattermost/webhook/assignment/confirm", "callbackid":"", "state":"...", "submission":{ "comment":null }, "channel_id":"", "teamid":"qy68iknxw7bopqqn1bbkswr4yy" }}}
Response:
{ "id":"api.context.permissions.app*error", "message":"You do not have the appropriate permissions.", "detailed_error":"", "request_id":"bdndggffnfdc9ggngs7xoej7xc", "status*code":403 }
If you're interested please comment here and come join our "Contributors" community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our "Developers" community channel.
New contributors please see our Developer's Guide.