-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fix upload permissions and centralize download permissions #7109
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be cherrypicked to 2.1
@furqanmlk Adding you as one of the QA from the core teams. If you find someone else should be testing this, feel free to reassign. |
We should be cutting 2.1 not later than Wednesday |
@furqanmlk please do prioritize this PR as I need to merge it ASAP!! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@larkox
I am still able to upload and download files when settings are
"EnableMobileUpload": false,
"EnableMobileDownload": false,
Please see the attached recording.
am I missing something?
Filmage.2023-02-14_144234.mp4
@furqanmlk have you made the changes to the config file directly instead of using the admin console? and if so, once you made the change, did you restarted the server? and if so, have you restarted the app (just in case)? if you use the browser to get the client config what values do you get for those settings? |
|
@furqanmlk the results of the |
There is no closing bracket |
Oh there is, and there are a bunch more values there |
Sorry there was another option to view source |
@furqanmlk based on what you pasted, the problem is the config the server is returning, not sure what server are you using and what is your setup, but that config definitely has a log of missing key values |
I am using local setup. let me re-try |
I just tested it on my local setup and is working just fine for me |
@furqanmlk maybe you are using the config from the database and not the file? perhaps use the admin console to set them |
thanks @enahum I dont know why it is not taking effect from Disabled DownlaodDisabled Upload |
Cherry pick is scheduled. |
Summary
The logic about the checking if files can be uploaded was wrong. I fixed it and added some tests for it.
I also piggybacked some changes about the download logic, to centralize it, and added also tests.
Ticket Link
Fix https://mattermost.atlassian.net/browse/MM-50448
Release Note