Leap2A import ignores studentid internal artefact

Bug #736302 reported by Darren James Harkness
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Darryl Hamilton

Bug Description

When importing a student's LEAP2A file in Mahara 1.2.6, the studentid internal artefact appears to be ignored, and no data is stored in the user's usr.studentid field in the database.

We rely on the value stored in usr.studentid for some additional functionality in our installation, so this causes noticeable issues.

Below is the relevant XML from the leap2a.xml file (with dummy student ID):

        <leap:persondata
            mahara:artefactplugin="internal"
            mahara:artefacttype="studentid"
            leap:field="other"

            leap:label="Student ID"

        >11111111</leap:persondata>

Tags: leap2a
Revision history for this message
François Marier (fmarier) wrote :

Hi Penny,

Temporarily assigning this to you because I'm wondering whether this is something you might have fixed in the Leap2A work you did on 1.2 or 1.3.

Cheers,
Francois

tags: added: leap2a
Changed in mahara:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Penny Leach (mjollnir)
Revision history for this message
Penny Leach (mjollnir) wrote : Re: [Bug 736302] Re: Leap2A import ignores studentid internal artefact

No I have no idea about that sorry, never looked at that code before now.
I had a quick look at htdocs/artefact/internal/import/leap/lib.php (line
436 or so) and can't see any obvious good reason this doesn't work, unless
that method isn't being called.

I can get a working copy set up and try and debug this but not for a week
or so since I'm in the process of moving right now. If someone wants to
have a look before then I'm happy to help.

--
/* ---------------------------------------------------
Penny Leach | http://mjollnir.org | http://she.geek.nz
GPG: 8347 00FC B5BF 6CC0 0FC9 AB90 1875 120A A30E C22B
--------------------------------------------------- */

Revision history for this message
Darren James Harkness (darren-athabascau) wrote :

Attached is the leap2a file being generated by our instance of Mahara 1.2.6 in case it's useful for replication. This is a vanilla user on the system.

Darryl Hamilton (lordp)
Changed in mahara:
status: Triaged → In Progress
assignee: Penny Leach (mjollnir) → Darryl Hamilton (lordp)
Changed in mahara:
status: In Progress → Fix Committed
milestone: none → 1.4.0
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.