[Building Sakai] Course Management - CourseSetRoleResolver question

Paul Marais paul at psybergate.co.za
Thu Jul 7 06:35:47 PDT 2011


Hi,

 

I'm using the Course Management API to insert my Course Management data.

It seems to be working properly.

 

However, when I log in with a user that has a membership to Course Set I get
the following error in Tomcat:

org.sakaiproject.coursemanagement.impl.provider.BaseRoleResolver - Unable to
find sakai role for CM role AFNL

 

The name of the CourseSet is AFNL, but the lecturer is linked with a
'DeptAdmin' role to it:

cmAdmin.addOrUpdateCourseSetMembership("lecturerUserName", "DeptAdmin",
"AFNL", "Active");

 

After debugging this I found the problem in CourseSetRoleResolver.java.
(Around line 117 in the sakai-2.8.0 tag.)

The convertRole method sends the 'AFNL' key instead of the 'DeptAdmin' role.

 

What am I doing wrong here?

 

Thanks

Paul

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20110707/daa596e4/attachment.html 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT00001.txt
Url: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20110707/daa596e4/attachment.txt 


More information about the sakai-dev mailing list