Unable to import leap2a file

Bug #1681291 reported by Niranjan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Robert Lyon
17.04
Fix Released
Medium
Unassigned
17.10
Fix Released
Medium
Robert Lyon

Bug Description

Tested on
Site: https://master-mahara.catalystdemo.net.nz
Browser: chrome/FF/Safari 10.0.3
Device: Desktop/MacBook Pro

Steps to Reproduce:

1) Navigate to portfolio>Import
2) choose a Leap2a file
3) Click on Import

Actual Result: The following warning message is displayed

[WAR] 1d (artefact/comment/import/leap/lib.php:249) Missing argument 3 for LeapImportComment::setup_relationships(), called in /home/niranjanbandi/code/mahara/htdocs/artefact/comment/import/leap/lib.php on line 240 and defined

Call stack (most recent first):
log_message("Missing argument 3 for LeapImportComment::setup_re...", 8, true, true, "/home/niranjanbandi/code/mahara/htdocs/artefact/co...", 249) at /home/niranjanbandi/code/mahara/htdocs/lib/errors.php:521
error(2, "Missing argument 3 for LeapImportComment::setup_re...", "/home/niranjanbandi/code/mahara/htdocs/artefact/co...", 249, array(size 2)) at /home/niranjanbandi/code/mahara/htdocs/artefact/comment/import/leap/lib.php:249
LeapImportComment::setup_relationships(object(SimpleXMLElement), object(PluginImportLeap)) at /home/niranjanbandi/code/mahara/htdocs/artefact/comment/import/leap/lib.php:240
LeapImportComment::setup_relationships_from_requests(object(PluginImportLeap)) at /home/niranjanbandi/code/mahara/htdocs/lib/mahara.php:1771
call_static_method("LeapImportComment", "setup_relationships_from_requests", object(PluginImportLeap)) at /home/niranjanbandi/code/mahara/htdocs/import/leap/lib.php:299
PluginImportLeap->call_import_method_plugins("setup_relationships_from_requests") at /home/niranjanbandi/code/mahara/htdocs/import/leap/lib.php:315
PluginImportLeap->do_import_from_requests() at /home/niranjanbandi/code/mahara/htdocs/import/index.php:311
do_import() at /home/niranjanbandi/code/mahara/htdocs/import/index.php:71

[WAR] 1d (lib/errors.php:536) [TypeError]: Argument 4 passed to LeapImportComment::setup_relationships() must be of the type array, none given, called in /home/niranjanbandi/code/mahara/htdocs/artefact/comment/import/leap/lib.php on line 240

Call stack (most recent first):
exception(object(TypeError)) at Unknown:0

And for safari browser it only shows the following error

Mahara: Site unavailable
A nonrecoverable error occurred. This probably means you have encountered a bug in the system

Changed in mahara:
status: New → Incomplete
Revision history for this message
Niranjan (niranjan528) wrote :

I have used the attached leap2A file for testing

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/7728

Robert Lyon (robertl-9)
Changed in mahara:
status: Incomplete → In Progress
importance: Undecided → Medium
assignee: nobody → Robert Lyon (robertl-9)
milestone: none → 17.10.0
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/7728
Committed: https://git.mahara.org/mahara/mahara/commit/a407b3791a85b59c1a83d50216d187cc7a53905f
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit a407b3791a85b59c1a83d50216d187cc7a53905f
Author: Robert Lyon <email address hidden>
Date: Mon May 8 11:04:13 2017 +1200

Bug 1681291: Missing params for LeapImportComment::setup_relationships()

When the bug 1643365 was fixed we missed a place where the
setup_relationships() was called. We need to add the extra required
parameters to the call

behatnotneeded

Change-Id: I093937073598d4ff39abfa10aa9725319a40ec55
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 "17.04_STABLE" branch: https://reviews.mahara.org/7737

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

Reviewed: https://reviews.mahara.org/7737
Committed: https://git.mahara.org/mahara/mahara/commit/fee994ca330cb614a084cd169e7c39f2a06b591f
Submitter: Robert Lyon (<email address hidden>)
Branch: 17.04_STABLE

commit fee994ca330cb614a084cd169e7c39f2a06b591f
Author: Robert Lyon <email address hidden>
Date: Mon May 8 11:04:13 2017 +1200

Bug 1681291: Missing params for LeapImportComment::setup_relationships()

When the bug 1643365 was fixed we missed a place where the
setup_relationships() was called. We need to add the extra required
parameters to the call

behatnotneeded

Change-Id: I093937073598d4ff39abfa10aa9725319a40ec55
Signed-off-by: Robert Lyon <email address hidden>
(cherry picked from commit a407b3791a85b59c1a83d50216d187cc7a53905f)

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.