internalmedia blocks ending up with a blogpost as the connected artefact

Bug #1364615 reported by Robert Lyon
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
High
Son Nguyen

Bug Description

This is another issues with the internalmedia blcoktype. See https://bugs.launchpad.net/mahara/+bug/1364609

When looking at the data of a large site I found that some internalmedia block instances had configdata for artefactid pointing to a blogpost artefact.

I'm not sure why this is but it's clearly not correct as a blogpost artefact is not a valid artefacttype for an internalmedia block.

This needs to be sorted out as to why it is happening and how to update existing date to correct the problem.

On check of large myportfolio database 8 internalmedia blocks out of 11,200 had this problem.

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

One can also end up with a textbox having a blog artefact as an attachment - I suspect same problem could be occurring for non internalmedia blocktypes.

Revision history for this message
Robert Lyon (robertl-9) wrote :
Son Nguyen (ngson2000)
Changed in mahara:
status: Confirmed → In Progress
assignee: nobody → Son Nguyen (ngson2000)
Revision history for this message
Son Nguyen (ngson2000) wrote :

All wrong artefacts in myportfolio.school were imported via leap2a in 2011.

The Leap2A import feature was first introduced in mahara 1.2 (2009)

Revision history for this message
Son Nguyen (ngson2000) wrote :

Yes, we should also check the compatibility of the blocktype and artefacttype

Revision history for this message
Son Nguyen (ngson2000) wrote :

It'd be hard to find which old code caused this issue, and it seems fixed in the newer version 1.3.0 (patches for attaching files in blogposts)

I would only provide the database update for removing these wrong artefacts from the internalmedia blocks

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

Robert Lyon (robertl-9)
Changed in mahara:
milestone: 15.04.0 → 15.04.1
Revision history for this message
Aaron Wells (u-aaronw) wrote :

As discussed on the gerrit patch, so we can't replicate the cause of this problem, and it's a rare problem even on our largest sites, I think that it's best to share the tool we've written to fix it (which is in the gerrit patch), but not upstream it into core.

So, having done that, I'm going to close this bug.

Changed in mahara:
milestone: 15.04.1 → none
status: In Progress → 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.