Can't comment on artefacts on public or secret URL pages

Bug #1864757 reported by Kristina Hoeppner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
High
Lisa Seeto
19.10
Fix Released
High
Unassigned

Bug Description

When you shared a page publicly or via secret URL, i.e. you are not needing to log in to view the page, you can't comment on artefacts that should allow comments because the site asks "Reload the page to log in". It seems that currently, we have a restriction in place that content on the new modal that was introduced in Mahara 19.10 can only be accessed when the viewer is logged into the site.

To replicate:

1. Create a page and add a journal entry and an image via the image block. Make sure that both allow comments.
2. Share the page publicly and via a secret URL.
3. Navigate to the page as a not-logged in person.

Expected results:
1. When you click the image, the modal shows the details and the commenting possibility.
2. When you activate the "Details" mode, you can click the "Add comment" link for both journal entry and image and the modal shows the metadata that you can see when you are logged in and you can comment.

Actual result: The modal opens but is empty.

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

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/10782
Committed: https://git.mahara.org/mahara/mahara/commit/674725c74b9b78489097643163ac44c2d46ec340
Submitter: Cecilia Vela Gurovic (<email address hidden>)
Branch: master

commit 674725c74b9b78489097643163ac44c2d46ec340
Author: Lisa Seeto <email address hidden>
Date: Thu Feb 27 15:14:09 2020 +1300

Bug 1864757: Can't comment on artefacts on public or secret URL pages

- change js to target fields for both logged and logged out users
- add public setting to files

Change-Id: I8c869cbb0e82c84f692d69615ec839a5a2afba9e
Signed-off-by: Lisa Seeto <email address hidden>

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "19.10_STABLE" branch: https://reviews.mahara.org/10791

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/10791
Committed: https://git.mahara.org/mahara/mahara/commit/f4b1c2ef971da7f76e0034b5842683cc5281416f
Submitter: Cecilia Vela Gurovic (<email address hidden>)
Branch: 19.10_STABLE

commit f4b1c2ef971da7f76e0034b5842683cc5281416f
Author: Lisa Seeto <email address hidden>
Date: Thu Feb 27 15:14:09 2020 +1300

Bug 1864757: Can't comment on artefacts on public or secret URL pages

- change js to target fields for both logged and logged out users
- add public setting to files

Change-Id: I8c869cbb0e82c84f692d69615ec839a5a2afba9e
Signed-off-by: Lisa Seeto <email address hidden>
(cherry picked from commit 674725c74b9b78489097643163ac44c2d46ec340)

Changed in mahara:
status: Fix Committed → Fix Released
no longer affects: mahara/20.04
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.