click here for details... Sakai Executive Director Position Search now open
Issue Details (XML | Word | Printable)

Key: SAK-16602
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Stephen Marquard
Reporter: Corey McGarrahan
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Sakai

Section Memberships screen not updating status until a Reset

Created: 18-Jun-2009 15:30   Updated: 24-Nov-2009 09:21
Component/s: Section Info
Affects Version/s: 2.5.5, 2.6.0
Fix Version/s: 2.5.5, 2.6.1, 2.7.0

Time Tracking:
Not Specified

Issue Links:
Relate
 

2.6.x Status: Closed
2.5.x Status: Closed
2.4.x Status: None


 Description  « Hide
Logged in as a student in a site that allows Students to sign up for sections. Sections must already be created that user is not a member of.

Select the Join link for a Section
The screen refreshes but the Join link is still there which may make the user think they are not a member of the section.
The user may select the Join link again and will receive the message: ! You are already a member of a section in this category.



 All   Comments   Work Log   Change History   Subversion Commits   git Commits      Sort Order: Ascending order - Click to sort in descending order
Stephen Marquard added a comment - 19-Jun-2009 08:40
Updating to critical because section info can be heavily used and this will cause unnecessary server load and student confusion during signup periods.

Stephen Marquard added a comment - 19-Jun-2009 08:47
Hi Ray,

This is a regression introduced by SAK-15780, which I established by reversing the change from SAK-15780 from a local 2-6-x branch, causing the problem to go away.

Please could you have a look at this. Alternately if you're not able to address this in the near future, we could back out SAK-15780 from the 2-6-x branch and trunk and reopen it.

Ray Davis added a comment - 20-Jun-2009 11:36
As a related symptom, if the student clicks "Switch" to move to a different section in the category, the screen changes to show all sections as joinable. Doing anything to refresh the view (e.g., changing the sort) results in displaying the correct situation (that the student is now a member of the other section).

Ray Davis added a comment - 20-Jun-2009 13:06
(Sorry this is taking a while -- I can't get a clean checkout or update over the network today, and my copy of the code is a couple of weeks old.)

Even though the instructor and student views of memberships share a lot of application-layer code, at the service level there's a complete divide: The instructor-adds-a-student code path uses SiteService's saveGroupMembership method; the student-adds-self code path uses AuthzGroupService's joinGroup method. I imagine that's the root issue here.,

Stephen Marquard added a comment - 20-Jun-2009 13:11
The direct use of AuthzGroupService is because of a requirement to enforce group sizes strictly, and those methods only exist in AuthzGroupService.

So what we probably need to do is make the sections service layer invalid the section site/group caches appropriately after it's called the AuthzGroupService methods.

Ray Davis added a comment - 20-Jun-2009 14:41
As usual, Stephen is right.

WARNING: Due to the critical nature of the bug, I checked what seems to be a fix into trunk despite not having been able to get a clean check-out of either trunk or 2.6.x. (I tested against a 2.6.x-based build from June 2.)

David Horwitz added a comment - 22-Jun-2009 02:02
Tested as patch to 2-6-x build

Jean-François Lévêque added a comment - 22-Jun-2009 05:18
2.5.x merge r63925

Anthony Whyte added a comment - 22-Jun-2009 12:55 - edited
Merged to 2.5.5 branch for 2.5.5-rc01.

Anthony Whyte added a comment - 29-Sep-2009 07:15
Not in 2.6.0.