An error appears when importing an extracted portfolio

Bug #1380434 reported by Jinelle Foley-Barnes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
High
Robert Lyon
1.10
Fix Released
High
Robert Lyon
1.7
Fix Released
High
Unassigned
1.8
Fix Released
High
Unassigned
1.9
Fix Released
High
Unassigned
15.04
Fix Released
High
Unassigned

Bug Description

Hi,

An error appears when I import an extracted portfolio. This same extracted portfolio has been tested with Aaron Well's Mahara 1.10-STABLE installation and it worked fine.

To replicate the bug, extract a portfolio and try importing it using :

- Mozilla version 32.0.3
-Ubuntu version 14.04
-Postgres version 9.3.5
-Mahara version 1.10-STABLE

Thanks,

Jinelle

Tags: export import
Robert Lyon (robertl-9)
Changed in mahara:
assignee: nobody → Robert Lyon (robertl-9)
importance: Undecided → High
status: New → In Progress
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/3790

Revision history for this message
Robert Lyon (robertl-9) wrote :

Ok, to test this patch you will need to check your browser's installed mimetypes:

For firefox go to Edit -> Preferences -> Applications. Search for 'zip' - if you have a line with ("application/x-zip") in it then you can test this patch.

Revision history for this message
Jinelle Foley-Barnes (jinelleb) wrote :

Patch tested, and patch successful :)

-Jinelle

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

Reviewed: https://reviews.mahara.org/3790
Committed: http://gitorious.org/mahara/mahara/commit/cf65df39b0e1cc6d5de02f3130c3790d22712afb
Submitter: Yuliya Bozhko (<email address hidden>)
Branch: master

commit cf65df39b0e1cc6d5de02f3130c3790d22712afb
Author: Robert Lyon <email address hidden>
Date: Tue Oct 14 07:51:34 2014 +1300

Problem extracting leap2a zip file on import (Bug #1380434)

For some zip files for some users the mimetype is being interpreted as
"application/x-zip" (note the quotes are part of the string) so this
fails to map to the valid zip types and so the zip file is not
extracted.

So have trimmed the quote off the string

Change-Id: Ia58e3c3aa9a734172543b8c71ecab10a8f313b82
Signed-off-by: Robert Lyon <email address hidden>

Changed in mahara:
status: In Progress → Fix Committed
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "1.7_STABLE" branch: https://reviews.mahara.org/3808

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

Reviewed: https://reviews.mahara.org/3808
Committed: http://gitorious.org/mahara/mahara/commit/3c3b05168791f46cbeec47c1397a6fbef5f005e4
Submitter: Robert Lyon (<email address hidden>)
Branch: 1.7_STABLE

commit 3c3b05168791f46cbeec47c1397a6fbef5f005e4
Author: Robert Lyon <email address hidden>
Date: Tue Oct 14 07:51:34 2014 +1300

Problem extracting leap2a zip file on import (Bug #1380434)

For some zip files for some users the mimetype is being interpreted as
"application/x-zip" (note the quotes are part of the string) so this
fails to map to the valid zip types and so the zip file is not
extracted.

So have trimmed the quote off the string

Change-Id: Ia58e3c3aa9a734172543b8c71ecab10a8f313b82
Signed-off-by: Robert Lyon <email address hidden>

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "1.8_STABLE" branch: https://reviews.mahara.org/3809

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

Reviewed: https://reviews.mahara.org/3809
Committed: http://gitorious.org/mahara/mahara/commit/c5a7fc6fbff56fd465c21c8cd0f9a5b8a3100065
Submitter: Robert Lyon (<email address hidden>)
Branch: 1.8_STABLE

commit c5a7fc6fbff56fd465c21c8cd0f9a5b8a3100065
Author: Robert Lyon <email address hidden>
Date: Tue Oct 14 07:51:34 2014 +1300

Problem extracting leap2a zip file on import (Bug #1380434)

For some zip files for some users the mimetype is being interpreted as
"application/x-zip" (note the quotes are part of the string) so this
fails to map to the valid zip types and so the zip file is not
extracted.

So have trimmed the quote off the string

Change-Id: Ia58e3c3aa9a734172543b8c71ecab10a8f313b82
Signed-off-by: Robert Lyon <email address hidden>

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "1.9_STABLE" branch: https://reviews.mahara.org/3810

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

Reviewed: https://reviews.mahara.org/3810
Committed: http://gitorious.org/mahara/mahara/commit/f6a842af3f9d2618573233e5a5066bde654fd708
Submitter: Robert Lyon (<email address hidden>)
Branch: 1.9_STABLE

commit f6a842af3f9d2618573233e5a5066bde654fd708
Author: Robert Lyon <email address hidden>
Date: Tue Oct 14 07:51:34 2014 +1300

Problem extracting leap2a zip file on import (Bug #1380434)

For some zip files for some users the mimetype is being interpreted as
"application/x-zip" (note the quotes are part of the string) so this
fails to map to the valid zip types and so the zip file is not
extracted.

So have trimmed the quote off the string

Change-Id: Ia58e3c3aa9a734172543b8c71ecab10a8f313b82
Signed-off-by: Robert Lyon <email address hidden>

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "1.10_STABLE" branch: https://reviews.mahara.org/3811

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

Reviewed: https://reviews.mahara.org/3811
Committed: http://gitorious.org/mahara/mahara/commit/2969ecf8a7cd0cd14df23b5c2408c59ffde0781a
Submitter: Robert Lyon (<email address hidden>)
Branch: 1.10_STABLE

commit 2969ecf8a7cd0cd14df23b5c2408c59ffde0781a
Author: Robert Lyon <email address hidden>
Date: Tue Oct 14 07:51:34 2014 +1300

Problem extracting leap2a zip file on import (Bug #1380434)

For some zip files for some users the mimetype is being interpreted as
"application/x-zip" (note the quotes are part of the string) so this
fails to map to the valid zip types and so the zip file is not
extracted.

So have trimmed the quote off the string

Change-Id: Ia58e3c3aa9a734172543b8c71ecab10a8f313b82
Signed-off-by: Robert Lyon <email address hidden>

Robert Lyon (robertl-9)
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.