mattermost/mattermost

Web/Desktop App: Submit/Cancel button in interactive dialog sometimes does not populate channel_id

Open

#23.925 aperta il 30 giu 2023

Vedi su GitHub
 (6 commenti) (0 reazioni) (1 assegnatario)TypeScript (7823 fork)batch import
Help Wanted

Metriche repository

Star
 (32.880 star)
Metriche merge PR
 (Merge medio 6g 5h) (318 PR mergiate in 30 g)

Descrizione

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.

JIRA: https://mattermost.atlassian.net/browse/MM-53200

Guida contributor