Details
-
Bug
-
Resolution: Fixed
-
Minor
-
3.11.7, 3.11.10
-
MOODLE_311_STABLE
-
MOODLE_311_STABLE, MOODLE_400_STABLE
-
MDL-75108-master -
Description
In the HTML block, if there are attached files, the system will pass them to the search engine to index.
This is correct behaviour (the index might catch metadata in images, or you might have attached a PDF or something) but in the attach_files function, the HTML block will also pass the directory entries to the search engine. As these are 0 bytes they cannot contain any data, and Solr will output an error indexing them.
I searched and all other implementations of attach_files do exclude directories, it's only this one that doesn't.