webservices: get_groups_by_id requires institution

Bug #1393620 reported by Robert Lyon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Invalid
Medium
Unassigned
17.04
Invalid
Medium
Unassigned
17.10
Invalid
Medium
Unassigned

Bug Description

Currently the webservices method to fetch group information by id requires the group to have institution set.

Will need to be adjusted to allow for groups not attached to an institution.

Tags: webservices
Aaron Wells (u-aaronw)
summary: - get_groups_by_id requires institution : webservices
+ webservices: get_groups_by_id requires institution
description: updated
Changed in mahara:
status: New → Confirmed
Robert Lyon (robertl-9)
Changed in mahara:
milestone: 15.04.0 → 15.04.1
Revision history for this message
Aaron Wells (u-aaronw) wrote :

I consider this one a bug rather than a feature, because it prevents you from being able to search for non-institution groups.

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

Revision history for this message
Russell Boyatt (russell-boyatt) wrote :

If I understand the issue being reported here, the following change should address the issue - https://reviews.mahara.org/#/c/5746/.

* If no groups are specified in webservice call, then non-institution groups are retrieved (those groups with NULL institution in group table).

* For webservice access where no institution is set it now allows access to those groups (i.e. where WEBSERVICE_INSTITUTION is 'mahara' which is equivalent to NULL institution in group table).

Where a shortname is specified, the institution is still required.

no longer affects: mahara/15.04
no longer affects: mahara/15.10
no longer affects: mahara/16.04
Robert Lyon (robertl-9)
Changed in mahara:
milestone: 16.10.1 → 17.04.0
no longer affects: mahara/16.10
Robert Lyon (robertl-9)
Changed in mahara:
milestone: 17.04.0 → 17.04.1
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.