grouper-users - RE: [grouper-users] Grouper loader and unresolvable subjects
Subject: Grouper Users - Open Discussion List
List archive
- From: Chris Hyzer <>
- To: Tim Darby <>
- Cc: "" <>
- Subject: RE: [grouper-users] Grouper loader and unresolvable subjects
- Date: Fri, 27 Sep 2013 17:17:40 +0000
- Accept-language: en-US
Great. Thanks for testing so promptly. I think that is a useful addition to the loader. And it should work for all of the loader types (sql simple, list
of groups, and all the ldap ones). Chris From: [mailto:]
On Behalf Of Tim Darby That did it, thanks! I did revert the patch to GrouperLoaderType, BTW.
Tim Darby On Fri, Sep 27, 2013 at 9:51 AM, Chris Hyzer <> wrote: Ugh, sorry about that. I reproduced it in a unit test, and verified the fix now works. Its in the
jira. You can revert the part of GrouperLoaderType back to this if you like:
Subject theSubject = member.findOrGetSubject();
if (GrouperLoader.isDryRun()) {
alreadyDeleted = !group[0].hasMember(theSubject);
GrouperLoader.dryRunWriteLine("Group: " + groupName +
" delete " + GrouperUtil.subjectToString(theSubject));
} else {
//go from subject since large lists might be removed from cache
alreadyDeleted = !group[0].deleteMember(theSubject,
false);
LOG.debug("Group: " + groupName +
" delete " + GrouperUtil.subjectToString(theSubject) +
", alreadyDeleted? " + alreadyDeleted);
} Implement the patch in the jira and let me know
J https://bugs.internet2.edu/jira/browse/GRP-941 Thanks, Chris From:
[mailto:]
On Behalf Of Tim Darby Not quite. Here's the stack I get now: java.lang.RuntimeException: Problem with group: arizona.edu:community:sagroups:PHLT at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType.syncOneGroupMembership(GrouperLoaderType.java:2343) at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType.syncGroupList(GrouperLoaderType.java:1365) Caused by: java.lang.RuntimeException: java.lang.NullPointerException: Problem
deleting member: , , Problem in HibernateSession: HibernateSession: isNew: true, isReadonly: true, grouperTransactionType: NONE at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType$10.callback(GrouperLoaderType.java:2320) at edu.internet2.middleware.grouper.internal.dao.hib3.Hib3TransactionDAO$1.callback(Hib3TransactionDAO.java:66) Caused by: java.lang.NullPointerException: Problem deleting member:
,
Tim Darby On Thu, Sep 26, 2013 at 12:52 PM, Tim Darby <> wrote: No problem, I'll let you know. :-)
Tim Darby On Thu, Sep 26, 2013 at 12:22 PM, Chris Hyzer <> wrote: Any chance you can implement this patch and see if it helps?
J https://bugs.internet2.edu/jira/browse/GRP-941 Thanks, Chris From:
[mailto:]
On Behalf Of Tim Darby Sorry, if this was covered already, but I couldn't find it. Is there a way in 2.1.5 to tell Grouper loader to continue on if
it encounters an unresolvable subject? This seems to occur when a subject has memberships, but is deleted from the subject source (ldap) before the memberships are deleted.
Tim Darby |
- [grouper-users] Grouper loader and unresolvable subjects, Tim Darby, 09/26/2013
- RE: [grouper-users] Grouper loader and unresolvable subjects, Chris Hyzer, 09/26/2013
- RE: [grouper-users] Grouper loader and unresolvable subjects, Chris Hyzer, 09/26/2013
- Message not available
- Message not available
- RE: [grouper-users] Grouper loader and unresolvable subjects, Chris Hyzer, 09/27/2013
- Re: [grouper-users] Grouper loader and unresolvable subjects, Tim Darby, 09/27/2013
- RE: [grouper-users] Grouper loader and unresolvable subjects, Chris Hyzer, 09/27/2013
- Re: [grouper-users] Grouper loader and unresolvable subjects, Tim Darby, 09/27/2013
- RE: [grouper-users] Grouper loader and unresolvable subjects, Chris Hyzer, 09/27/2013
- Message not available
- Message not available
Archive powered by MHonArc 2.6.16.