[SAK-34072] Problem filtering submissions by group Created: 06-Apr-2018  Updated: 09-Apr-2018  Resolved: 07-Apr-2018

Status: Verified
Project: Sakai
Component/s: Assignments
Affects Version/s: 12.0
Fix Version/s: 12.1, 19.0

Type: Bug Priority: Blocker
Reporter: Juan José Meroño Sánchez Assignee: Earle R Nietzel
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
is related to SAK-33552 Assignments doesn't work correctly fo... Verified
12 status: Resolved
Test Plan:

Please add a Test Plan here.


I've found a problem in assigments checking groups allowed to grade.


I don't know how to reproduce this in nightly servers, but the problem is because of the filter:

Set<String> assignmentGroups = assignment.getGroups();

This line is getting groups of assignment in format:


But then this line:

groupsAllowed.stream().filter(g -> assignmentGroups.contains(g.getId())).collect(Collectors.toSet());

Is using g.getId() that is only: 790a21a1-10a5-4c95-b28d-8ebcc0fc284d
to filter, so the collection is always empty.
I guess g.getId() should be g.getReference()

Generated at Sat May 25 12:54:29 CDT 2019 using JIRA 7.5.0#75005-sha1:fd8c849d4e278dd8bbaccc61e707a716ad697024.