Exporting a skin has wrong background image

Bug #1228934 reported by Robert Lyon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
High
Robert Lyon

Bug Description

Scenario: I have a bunch of skins on a site, and also have a bunch of images in content -> files.

I make a skin and give it a background image.

I export the skin.

I then import the skin into another site where lots of image files already exist.

Outcome - for this particular skin it has wrong background image

- The wrong background image didn't exist before on either of the test sites (though must have existed in dataroot).
So for some reason it is picking up the wrong image to export.

Tags: skins
Revision history for this message
Aaron Wells (u-aaronw) wrote :

I discussed this with Robert, and this issue may be due to the fact that Robert's second installation is a dev one, where the database has been wiped and reinstalled but the dataroot directory has remained empty between installations.

So, the first step in investigating this should be to see whether it can be replicated on a site that was done as a complete clean install, with an empty dataroot directory.

tags: added: skins
Changed in mahara:
status: New → Incomplete
assignee: nobody → Robert Lyon (robertl-9)
Revision history for this message
Robert Lyon (robertl-9) wrote :

It is a possibility that the problem I experienced here is fixed by this patch
https://reviews.mahara.org/#/c/2519/

Where the file id of the background image was being exported and kept during the importation process so we'd end up with the new file pointing to wrong place.

Robert Lyon (robertl-9)
Changed in mahara:
status: Incomplete → In Progress
Aaron Wells (u-aaronw)
Changed in mahara:
status: In Progress → Fix Committed
Aaron Wells (u-aaronw)
Changed in mahara:
milestone: 1.8rc1 → 1.8.0
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.