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

Raise proper error for meeting_id === null in mediafile.update #2620

Conversation

luisa-beerboom
Copy link
Member

@luisa-beerboom luisa-beerboom commented Sep 17, 2024

See OpenSlides/openslides-client#4135

@Elblinator I leave merging to you, because I don't know, if you're going to want to put a staging label on this or not. IMO it's unnecessary, since changing the client will already fix the bug for the user. This is only a security feature.

@Elblinator Elblinator removed their assignment Sep 17, 2024
if "meeting_id" not in instance_fields:
if (
"meeting_id" not in instance_fields
or instance["meeting_id"] is not None
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not necessary due to the change in user.updates schema checks.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@luisa-beerboom luisa-beerboom added this pull request to the merge queue Sep 17, 2024
Merged via the queue into OpenSlides:main with commit 1bb41d2 Sep 17, 2024
5 checks passed
@luisa-beerboom luisa-beerboom deleted the c-4135-ensure-proper-error-message-for-meeting-id-null-in-mediafile-update branch September 17, 2024 13:42
openslides-automation bot pushed a commit that referenced this pull request Sep 17, 2024
* Raise proper error for  in mediafile.update

* Fix style

* Remove unnecessary line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants