export fails if files missing from dataroot

Bug #1081309 reported by Hugh Davenport
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
High
Son Nguyen

Bug Description

get errors such as:

HTML export - "Unable to copy profile icon xxxx into export" or "Unable to create 'filename' for directory xxxx"

Leap2A export - "Tried to add non-existent file: '....'"

After these errors, the export page just hangs.

Tags: academy export
Revision history for this message
Hugh Davenport (hugh-davenport) wrote :

This should just issue errors then continue with the export so that the user can atleast get some of the export.

tags: added: academy
Son Nguyen (ngson2000)
Changed in mahara:
assignee: nobody → Son Nguyen (ngson2000)
status: Triaged → In Progress
Son Nguyen (ngson2000)
Changed in mahara:
assignee: Son Nguyen (ngson2000) → nobody
status: In Progress → Confirmed
Son Nguyen (ngson2000)
Changed in mahara:
assignee: nobody → Son Nguyen (ngson2000)
status: Confirmed → In Progress
Revision history for this message
Son Nguyen (ngson2000) wrote :

Test cases:

1. Login as mahara user. Upload some files if file area is empty.
2. Export all data in HTML or LEAP2A format (Portfolio/Export)

Make sure everything is good.

Then, login on mahara server as www-data. Delete some files in {MAHARADATA}/artefact/file/originals

Repeat the step 2, make sure you got some error message but the exporting does still process.

Revision history for this message
Son Nguyen (ngson2000) wrote :
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/2042
Committed: http://gitorious.org/mahara/mahara/commit/91be4c3d17c469d9dcddf8e5d16e965cb10530b4
Submitter: Aaron Wells (<email address hidden>)
Branch: master

commit 91be4c3d17c469d9dcddf8e5d16e965cb10530b4
Author: Son Nguyen <email address hidden>
Date: Wed Feb 27 17:06:14 2013 +1300

    Enhance the exporting process (Bug #1081309)

    1. During the exporting, put the error messages into $SESSION.
    2. Refactor the displayMessages() function to display all messages
    or hide the previous one.
    3. Refactor the function print_export_footer() to handle html code in
    lang strings.

    Change-Id: I589822dc360e8f5bcac0298f9534824513214160
    Signed-off-by: Son Nguyen <email address hidden>

Aaron Wells (u-aaronw)
Changed in mahara:
status: In Progress → Fix Committed
Aaron Wells (u-aaronw)
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.