External file system image infinite loop
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Unassigned | ||
18.04 |
Fix Released
|
High
|
Unassigned | ||
18.10 |
Fix Released
|
High
|
Unassigned |
Bug Description
When the objectfs plugin is being used as an external file system, an image is uploaded and that image is no longer locally available the following infinite loop occurs:
mahara_1 | PHP message: PHP 34291. module_
mahara_1 | PHP message: PHP 34292. ArtefactTypeIma
mahara_1 | PHP message: PHP 34293. get_dataroot_
mahara_1 | PHP message: PHP 34294. ArtefactTypeFil
mahara_1 | PHP message: PHP 34295. module_
mahara_1 | PHP message: PHP 34296. module_
mahara_1 | PHP message: PHP 34297. module_
mahara_1 | PHP message: PHP 34298. module_
It's my opinion this is not an issue with the plugin itself, but the core hooks. It is expected that a FS plugin will call ArtefactTypeIma
Reproduction steps (reproduced with 1804):
1. Fresh install mahara
2. Install https:/
3. Configure the plugin with test s3 crendentials.
4. Set:
Delete local objects = true
Minimum size threshold = 0
Minimum age = 0
Consistancy delay = 0
5. Put this line in config.php:
$cfg->externalf
"includefile
"class" => "module_
);
6. Goto /artefact/
7. Upload an image
8. php htdocs/
9. php htdocs/
10. Refresh /artefact/
Changed in mahara: | |
status: | New → Fix Committed |
importance: | Undecided → High |
milestone: | none → 18.10.0 |
Patch for "master" branch: https:/ /reviews. mahara. org/8950