Bug in Plugin database: wrong download structure

Bug in Plugin database: wrong download structure

by Andreas Grabs -
Number of replies: 3
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Translators

Hi,

I'm really excited about the plugin database and the ability to download plugins automatically.
However, for one plugin the structure of the downloaded zip file is wrong.

Here is the link to the plugin:
https://moodle.org/plugins/filter_html5avtomp4/versions
When I download and unzip the zip file, the resulting folder should have the name of the plugin "html5avtomp4", but it is "ndunand-moodle-filter_html5avtomp4-4a7f8c9".

Is there a reason for this or is it just a bug?

Best regards
Andreas

Average of ratings: -
In reply to Andreas Grabs

Re: Bug in Plugin database: wrong download structure

by Brett Dalton -
Picture of Moodle HQ Picture of Particularly helpful Moodlers
I'd suggest contacting the plugin author about the issue.
In reply to Andreas Grabs

Re: Bug in Plugin database: wrong download structure

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

There was an issue in June/July 2021 affecting folder names for plugins, see MDLSITE-6525. It looks like this plugin was released during that time. So you just need to rename the extracted folder to html5avtomp4 (in the filter folder).

In reply to Leon Stringer

Re: Bug in Plugin database: wrong download structure

by Andreas Grabs -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Translators

Thank you,

Moodle doesn't seem to trust the directory name in the zip either. In core\update\code_manager::get_plugin_zip_root_dir() only the first directory found is used, no matter what the name is.
That's exactly what I'm doing now.

So, problem solved smile.

Best regards
Andreas