|
Setting the current user id in 2.2: msg#00393cms.sakai.devel
I'm trying to update the test-harness in 2.2, and I'm having difficulty "logging in" to sakai. Here's what used to work for me: Session session = SessionManager.getCurrentSession(); session.setUserId("admin"); session.setUserEid("admin"); But now calling UserDirectoryService.getCurrentUser().getId() returns an empty string. And when I try to take actions such as adding users, adding sites, etc, I get a PermissionException, since user is null. I've even tried AuthzGroupService.refreshUser("admin"), but that doesn't fix this either. Does anyone have any ideas what I need to do to set the current userID in 2.2? Thanks, Josh -- Josh Holtzman Educational Technology Services, UC Berkeley jholtzman@xxxxxxxxxxxx 510.643.7380 ---------------------- This automatic notification message was sent by Sakai Collab (http://collab.sakaiproject.org/portal) from the DG: Development site. You can modify how you receive notifications at My Workspace > Preferences. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Google summer of code: 00393, Stephen Marquard |
|---|---|
| Next by Date: | Re: Upgrading Sakai 2.1.1 to 2.1.2 - MySQL "alter table drop foreign key" Error: 00393, Daisy Flemming |
| Previous by Thread: | Google summer of codei: 00393, Stephen Marquard |
| Next by Thread: | Re: Setting the current user id in 2.2: 00393, Ian Boston |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |