Forum post downloads should be publicly available in a public forum
Bug #655631 reported by
Andrew Nicols
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Richard Mansfield |
Bug Description
In a public forum (such as the mahara community forum), posts are readable when users are not logged in. However, any files attached to a post are only available when logged in.
As a result, you can only see images posted inline in a forum post when logged in. This also affects users receiving posts in e-mail, and through RSS feeds.
Arguably, if a user receives e-mail updates for forum posts, then this requires a separate resolution since not all groups are public groups. If a user is in a non-public group and receives e-mail alerts for a forum post with an inline image, then we should probably re-write the location of the image and include it as an attachment to the e-mail.
Changed in mahara: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
milestone: | none → 1.4.0 |
Changed in mahara: | |
status: | Confirmed → In Progress |
assignee: | nobody → Richard Mansfield (richard-mansfield) |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This could be quite annoying to fix, because the files aren't really marked anywhere as attached to the forum post, they're just sitting in the body.
I know in the case of blog posts, when you display them in a view, there is a nasty little regex somewhere that goes through the body of the post, looks for those download.php links and tries to rewrite the links to include the viewid*.
It would be possible to do something similar in forum posts, perhaps appending the userid of the poster to the download link, and then getting download.php to check that the user in the url has edit permission on the file artefact.
* Oops, there *used* to be a horrible regex somewhere that did this, but I inadvertently removed the call to that function when I messed with the rendering of blogposts. Will fix in https:/ /bugs.launchpad .net/mahara/ +bug/656096