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

scheduled task "mod_zoom\task\get_meeting_recordings" fails with recordingtype "shared_screen_with_speaker_view'" #599

Closed
samwitzig opened this issue Jun 27, 2024 · 5 comments · Fixed by #605
Assignees
Labels
bug Fixes problems or reduces technical debt

Comments

@samwitzig
Copy link

We unfortunately have the scheduled task "mod_zoom\task\get_meeting_recordings" failing: If the recording type is "shared_screen_with_speaker_view", we receive the error "ERROR: value too long for type character varying(30)".

In the database scheme (https://github.com/ncstate-delta/moodle-mod_zoom/blob/main/db/install.xml -> line 127, we see that field recordingtype has 30 characters, "shared_screen_with_speaker_view" however has 31 characters.

@jrchamp
Copy link
Collaborator

jrchamp commented Jun 27, 2024

Thanks @samwitzig! It looks like when we modified the data being stored in the field (2 months ago), we forgot to check the field's maximum size (last modified 3 years ago).

For the implementing developer, please make sure to use Moodle's built-in XMLDB Editor tool. We already know about a 35 character recording type, so maybe 50 would be a more comfortable limit.

@jrchamp jrchamp added the bug Fixes problems or reduces technical debt label Jun 27, 2024
@jrchamp jrchamp moved this from Needs triage to To Do in mod_zoom Workflow Jun 27, 2024
@acquaalta
Copy link

Hi @jrchamp,
Thanks for @samwitzig and you for explaining the nature of the bug. We also encountered it.

My follow-up question is: What if I already installed the "Zoom meeting" plugin which has this 30 characters limitation in the "recordingtype" field? The relevant table is already created in Moodle DB, with that limitation in the field.
Is there a way to fix the issue locally before you'll release an updated plugin version with the fix? I assume, of course, that the fix would also help these already have a previously installed a version of the plugin that has this bug (like 5.2.2, the latest one).

Thanks

@jrchamp
Copy link
Collaborator

jrchamp commented Jul 11, 2024

Hi @acquaalta,

Yes, the fix will change new installs and existing installs so that the column is large enough to store the expected values. If you want to fix it directly, you can, by increase the recordingtype column size.

@samwitzig
Copy link
Author

Any chance this issue is fixed before August 7th/8th? The Moodle HQ will release the new Moodle minor versions on August 12th, after which a lot of Moodle admins will touch their systems anyway.

@jrchamp
Copy link
Collaborator

jrchamp commented Jul 23, 2024

Personally, I'm hoping to have a release this week and this issue is the top priority for that release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes problems or reduces technical debt
Projects
Status: Done
4 participants