Image disappears from Page Description when page shared to other users
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Son Nguyen | ||
1.10 |
Won't Fix
|
High
|
Son Nguyen | ||
1.8 |
Won't Fix
|
Undecided
|
Unassigned | ||
1.9 |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
- exact version of Mahara: 1.4.2 & 1.5 (demo.mahara.org)
- operating system: Windows for the 1.4.2 version (I think)
- database: MySQL (I think)
- Chrome 20, IE8 & 9, FireFox 13, Safari 5
If an image is inserted into a Page Description (for example, as a decorative heading or title) and then that page is shared by Secret URL, the image disappears.
Any other images, such as those inserted as an image block and those inserted inline within a text box, appear without issue.
I have tested this in our installation of Mahara (1.4.2) and the demo.mahara.org version. The screen capture is taken from when I tested the demo.mahara.org version. In our version we get identical results, where the Page Description image disappears.
Addendum: if the images are hosted externally, e.g. at Flickr, they actually do appear in the Page Description area! It might take a few seconds for the image to load, though.
description: | updated |
description: | updated |
description: | updated |
Changed in mahara: | |
status: | New → Triaged |
importance: | Undecided → Low |
tags: | added: secreturl |
Changed in mahara: | |
assignee: | nobody → Son Nguyen (ngson2000) |
status: | Triaged → In Progress |
summary: |
- Image disappears from Page Description when page shared by Secret URL + Image disappears from Page Description when page shared to other users |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
Hello Teresa,
Thank you very much for your detailed bug report and also testing it on demo.mahara.org where we have access to as well. That was excellent work and helps us in general to get to the root of the problem being able to rule out an issue on your particular instance.
This is a permissions issue if I am not mistaken (a developer can correct me if necessary). The images in the blocks appear for users viewing the page via the Secret URL because they were inserted into the page as true artefacts via blocks.
External images are also displayed because they are freely accessible via the URL.
However, the Mahara permissions system cannot read the internal URL of the image you put into the descriptions text box as it just sees it as any URLs and thus cannot see it as an internal artefact. Internal artefacts are correctly put into pages via blocks, which aren't available for the description.
You can see the image in the description because it is your page. If you share the page with logged-in users, they can also see the image in the description, but anyone who doesn't have a login cannot see it. I can't say right now if that was intended that way or not as I can't read program code.
Hope that helps until a developer can provide more insight.
Cheers
Kristina