Check html export of views containing files owned by a different user to that of the view

Bug #688304 reported by Richard Mansfield
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Richard Mansfield

Bug Description

Html export may be failing when trying to rewrite download links to files which are owned by someone other than the exporting user (files which are not going to be included in the export).

[WAR] 80 (artefact/file/lib.php:563) Trying to get property of non-object
Call stack (most recent first):
* log_message("Trying to get property of non-object", 8, true, true,
"/srv/sitename.com/public/htdocs/artefact/file/l...", 563) at /srv/sitename.com/public/htdocs/lib/errors.php:444
* error(8, "Trying to get property of non-object", "/srv/sitename.com/public/htdocs/artefact/file/l...", 563, array(size 3)) at /srv/sitename.com/public/htdocs/artefact/file/lib.php:563
* ArtefactTypeFileBase::get_full_path("357", false) at /srv/sitename.com/public/htdocs/export/html/lib.php:800
* HtmlExportOutputFilter->get_folder_path_for_file(object(ArtefactTypeFile)) at /srv/sitename.com/public/htdocs/export/html/lib.php:692
* HtmlExportOutputFilter->replace_artefact_link(array(size 6)) at Unknown:0
* preg_replace_callback("#<a[^>]+href="(http\\://sitename\\.com/)?/?view/...", array(size 2), "<div id="column_1" class="column columns3" style="...") at /srv/sitename.com/public/htdocs/export/html/lib.php:629
* HtmlExportOutputFilter->filter("<div id="column_1" class="column columns3" style="...") at /srv/sitename.com/public/htdocs/export/html/lib.php:376
* PluginExportHtml->dump_view_export_data() at /srv/sitename.com/public/htdocs/export/html/lib.php:198
* PluginExportHtml->export() at /srv/sitename.com/public/htdocs/export/download.php:102

....

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 71 bytes) in /srv/sitename.com/public/htdocs/lib/htmlpurifier/HTMLPurifier/ChildDef/Required.php on line 25

Changed in mahara:
status: New → Triaged
milestone: none → 1.4.0
importance: Undecided → Medium
Changed in mahara:
assignee: nobody → Hugh Davenport (hugh-catalyst)
Changed in mahara:
assignee: Hugh Davenport (hugh-catalyst) → nobody
Changed in mahara:
assignee: nobody → Richard Mansfield (richard-mansfield)
Changed in mahara:
status: Triaged → In Progress
Changed in mahara:
status: In Progress → Fix Committed
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.