Create page via tags not inserting all tagged artefacts into DB

Bug #1840368 reported by Lisa Seeto on 2019-08-15
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Status tracked in 19.10
18.10
High
Unassigned
19.04
High
Unassigned
19.10
High
Lisa Seeto

Bug Description

It is possible to create a new page via tags. When a journal entry is tagged and a new page is created via tags, the journal block will appear on the new page. It will have a title that links back to the full journal entry, ie http://mahara/artefact/artefact.php?artefact=227&view=52
Clicking this link produces this error:
Access denied
You do not have access to view this page.

Artefact 227 not in page 52

It seems that when you create via tags, it is not inserting this journal entry artefact into the database.

Mahara: 19.04.dev
OS: Ubuntu 18.04.2
DB: postgres
Browser: Firefox 68.0.2

Lisa Seeto (lisaseeto) wrote :
Changed in mahara:
assignee: nobody → Lisa Seeto (lisaseeto)
status: New → Confirmed
status: Confirmed → In Progress
Steven (stevens-q) wrote :

Commit hash: a8542d054e675a0869a917a1f357f0989399b205
Environment tested: Master
Browser tested: Chrome
Theme used: Raw

PRECONDITIONS:
------------------------
1) Mahara user exists (No roles)
2) Journal exists as follows
 a) tags = "Journal"
 b) has Journal entry with title = "First Entry" and also tags = "Journal"

TEST STEPS:
------------------------
1) Log in as Mahara user
2) Create a portfolio page using the Create via tags field = "Journal"
3) Verify that a page has been loaded with the Journal block ✔
4) Click the display page button
5) Click the Journal entry title "First entry"
6) Verify user is redirected to the Journal entry ✔
7) Verify that an error message " Access denied" is NOT displayed ✔

Catalyst QA Approved ✔

Reviewed: https://reviews.mahara.org/10264
Committed: https://git.mahara.org/mahara/mahara/commit/a8542d054e675a0869a917a1f357f0989399b205
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit a8542d054e675a0869a917a1f357f0989399b205
Author: Lisa Seeto <email address hidden>
Date: Fri Aug 16 10:13:27 2019 +1200

Bug 1840368: Create page via tags not inserting all tagged artefacts into DB

made the taggedblock dirty again so that it saves itself later with all DB references.

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

Robert Lyon (robertl-9) on 2019-08-23
Changed in mahara:
status: In Progress → Fix Committed
importance: Undecided → Medium
milestone: none → 19.10.0
importance: Medium → High
Mahara Bot (dev-mahara) wrote :

Patch for "18.10_STABLE" branch: https://reviews.mahara.org/10273

Reviewed: https://reviews.mahara.org/10273
Committed: https://git.mahara.org/mahara/mahara/commit/e98b14c0f708b7811c4fc1358582d6bc28b8fa6e
Submitter: Robert Lyon (<email address hidden>)
Branch: 18.10_STABLE

commit e98b14c0f708b7811c4fc1358582d6bc28b8fa6e
Author: Lisa Seeto <email address hidden>
Date: Fri Aug 16 10:13:27 2019 +1200

Bug 1840368: Create page via tags not inserting all tagged artefacts into DB

made the taggedblock dirty again so that it saves itself later with all DB references.

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

Mahara Bot (dev-mahara) wrote :

Reviewed: https://reviews.mahara.org/10272
Committed: https://git.mahara.org/mahara/mahara/commit/ee7afa7aac4a3d9b3fe9510e8f69ad9c0728c579
Submitter: Robert Lyon (<email address hidden>)
Branch: 19.04_STABLE

commit ee7afa7aac4a3d9b3fe9510e8f69ad9c0728c579
Author: Lisa Seeto <email address hidden>
Date: Fri Aug 16 10:13:27 2019 +1200

Bug 1840368: Create page via tags not inserting all tagged artefacts into DB

made the taggedblock dirty again so that it saves itself later with all DB references.

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

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers