Skip to content
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

MM-60340 Enforce max file size when exporting to file via slash command #61

Merged
merged 9 commits into from
Nov 8, 2024

Conversation

wiggin77
Copy link
Member

@wiggin77 wiggin77 commented Nov 1, 2024

Summary

Adds a plugin config for maximum file size which is enforced for slash commands which generate files. If the config is not set, then the MM server file upload max size setting is used.

If a channel export exceeds the maximum file size, the file is not created and an error is DM'd to the user. e.g.:

An error occurred exporting channel [~Project Update](http://tower:8065/xanadu/channels/project-update): unable to write csv: limit (10000 bytes) exceeded

Ticket Link

https://mattermost.atlassian.net/browse/MM-60340

@wiggin77 wiggin77 added 2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester 3: Security Review Review requested from Security Team labels Nov 1, 2024
@esarafianou esarafianou removed the 3: Security Review Review requested from Security Team label Nov 6, 2024
@wiggin77 wiggin77 removed the 2: Dev Review Requires review by a core committer label Nov 8, 2024
@wiggin77 wiggin77 merged commit fc4f64b into master Nov 8, 2024
4 checks passed
@wiggin77 wiggin77 deleted the MM-60340_max_file_size branch November 8, 2024 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3: QA Review Requires review by a QA tester
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants