Pagination on "My portfolios" doesn't work when profile page is shared publicly

Bug #1716279 reported by Kristina Hoeppner on 2017-09-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
High
Cecilia Vela Gurovic
16.10
High
Unassigned
17.04
High
Unassigned
17.10
High
Cecilia Vela Gurovic

Bug Description

When your portfolio page and a minimum of 11 of your portfolios are shared publicly, the pagination on the "My portfolios" block on the profile page doesn't take you to the second page, but only gives the message "Reload to log in".

The pagination works fine when the user is logged in and navigates through the pagination.

To replicate:

1. Create 12 pages and set them as well as your profile page to "Public".
2. Copy the link to your profile page.
3. Log out or open a private browser window and go to the profile page.
4. Click the "2" in the pagination.

Expected result: You get to the remaining portfolios.
Actual result: The pagination doesn't change the pages and you stay on the first page.

Once a fix has been implemented, you'll also need to check the pagination when logged in (with another user) and confirm that it still works.

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

commit 35f3d2dcd872124e1f1fdb75a18b921c94ac246a
Author: Cecilia Vela Gurovic <email address hidden>
Date: Tue Sep 19 09:32:18 2017 +1200

bug 1716279: myviews blocktype public access

Added permissions to use json in public views
that include myviews blocktype, so the pagination
won't break when the block has more than 10 views

behatnotneeded

Change-Id: I8b96020729cc5cd0f3a34be7013155e2965c3ec2

Mahara Bot (dev-mahara) wrote :

Patch for "16.10_STABLE" branch: https://reviews.mahara.org/8047

Reviewed: https://reviews.mahara.org/8046
Committed: https://git.mahara.org/mahara/mahara/commit/166ce62f83535a87a6eb6b34ce8af62142d29e64
Submitter: Robert Lyon (<email address hidden>)
Branch: 17.04_STABLE

commit 166ce62f83535a87a6eb6b34ce8af62142d29e64
Author: Cecilia Vela Gurovic <email address hidden>
Date: Tue Sep 19 09:32:18 2017 +1200

bug 1716279: myviews blocktype public access

Added permissions to use json in public views
that include myviews blocktype, so the pagination
won't break when the block has more than 10 views

behatnotneeded

Change-Id: I8b96020729cc5cd0f3a34be7013155e2965c3ec2
(cherry picked from commit 35f3d2dcd872124e1f1fdb75a18b921c94ac246a)

Mahara Bot (dev-mahara) wrote :

Reviewed: https://reviews.mahara.org/8047
Committed: https://git.mahara.org/mahara/mahara/commit/a3aa472683d30b1a9e0c7fd899c4b20e7666109a
Submitter: Robert Lyon (<email address hidden>)
Branch: 16.10_STABLE

commit a3aa472683d30b1a9e0c7fd899c4b20e7666109a
Author: Cecilia Vela Gurovic <email address hidden>
Date: Tue Sep 19 09:32:18 2017 +1200

bug 1716279: myviews blocktype public access

Added permissions to use json in public views
that include myviews blocktype, so the pagination
won't break when the block has more than 10 views

behatnotneeded

Change-Id: I8b96020729cc5cd0f3a34be7013155e2965c3ec2
(cherry picked from commit 35f3d2dcd872124e1f1fdb75a18b921c94ac246a)

Niranjan (niranjan528) wrote :

URL :https://bugs.launchpad.net/mahara/+bug/1716279

Bug description: Pagination on "My portfolios" doesn't work when profile page is shared publicly

Environment to be tested: Master
Browser to be tested: Chrome, Firefox, Safari, IE (Latest version)

Precondition:
1.Two users exist on the system.
2. The system allows public pages and public profiles (Administration menu -> Configure site -> Site options -> General settings).

Steps to reproduce:

1. Navigate to Main menu > Portfolio > Pages and collections.
2. Click the ‘Add’ button.
3. Click the ‘Page’ button.
4. Enter ‘Page title’ as ‘page 01’ and click the ‘Save’ button.
5. Repeat steps 1 to 4 to create 12 pages and make sure the ‘page title’ is different.
6. Navigate to Main menu > Portfolio > Shared by me.
7. Click the ‘Edit access’ for one of the page.
8. Add the 13 pages that you created previously to the select box.
9. Select ‘Public’ from the ‘Share with’ drop down.
10. Click the ‘Save’ button.
11. Click the ‘Edit Access’ for ‘Profile page’.
12. Select ‘Public’ from the ‘Share with’ drop down.
13. Click the ‘Save’ button.
13. Copy the profile page URL.
13. Open a private browser window and paste the profile page URL.
14. Click on the ‘2’ in the pagination for the 'Admin user's portfolios' block.

Expected result: You should be able to see the remaining portfolios.

15. Login with another user and check if the pagination works.

Expected result: You should be able to see the remaining portfolios.

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

Other bug subscribers