Skip to Content.
Sympa Menu

grouper-dev - Re: [grouper-dev] usdu didn't update grouper_members

Subject: Grouper Developers Forum

List archive

Re: [grouper-dev] usdu didn't update grouper_members


Chronological Thread 
  • From: Jim Fox <>
  • To: Shilen Patel <>
  • Cc: Grouper Dev <>
  • Subject: Re: [grouper-dev] usdu didn't update grouper_members
  • Date: Mon, 17 Dec 2012 20:40:53 -0800


Just by running gsh with those commands,

It appears that SubjectFinder.findById and SubjectFinder.findByIdentifier both
do populate the sort/search fields.

Jim


On Dec 17, 2012, at 6:53 PM, Shilen Patel wrote:

> Hi Jim,
>
> Can you try running the following on a subject and see if the member
> attributes are updated in the database?
>
> gsh 0% session = GrouperSession.startRootSession()
> edu.internet2.middleware.grouper.GrouperSession:
> 6821a3084cde49268a0fefebe3ccff10,'GrouperSystem','application'
> gsh 1% subj = SubjectFinder.findById("stwi")
> subject: id='stwi' type='person' source='jdbc' name='Steven Windsor'
> gsh 2% member = MemberFinder.findBySubject(session, subj, false)
> member: id='stwi' type='person' source='jdbc'
> uuid='46c1bc5fadf041758039f91257606d68'
> gsh 3% member.updateMemberAttributes(subj, true)
>
>
> Also run getAttributes() and verify that name, lastname, and firstname are
> there.
>
> gsh 4% subj.getAttributes(false)
>
>
>
> Are there any errors in the grouper logs?
>
> Thanks!
>
> -- Shilen
>
>
>
> On 12/17/12 6:16 PM, "Jim Fox"
> <>
> wrote:
>
>>
>> I ran the usdu() method in gsh. It ran for several minutes, reported
>> a few nissing subjects, but did not update any sort/search fields
>> in grouper_members.
>>
>> gsh looked like this:
>>
>> --------------------------------------------
>> bin/gsh.sh
>> Using GROUPER_HOME: /data/local/src/grouper/grouper.apiBinary-2.1.2
>> Using GROUPER_CONF: /data/local/src/grouper/grouper.apiBinary-2.1.2/conf
>> Using JAVA: /usr/local/java/bin/java
>> using MEMORY: 64m-750m
>> Grouper starting up: version: 2.1.2, build date: 2012/08/14 15:02:01,
>> env: gws2
>> grouper.properties read from:
>> /data/local/src/grouper/grouper.apiBinary-2.1.2/conf/grouper.properties
>> Grouper current directory is:
>> /data/local/src/grouper/grouper.apiBinary-2.1.2
>> log4j.properties read from:
>> /data/local/src/grouper/grouper.apiBinary-2.1.2/conf/log4j.properties
>> Grouper is logging to file: /logs/gsh/event.log, /logs/gsh/error.log,
>> at min level INFO for package: edu.internet2.middleware.grouper, based on
>> log4j.properties
>> grouper.hibernate.properties:
>> /data/local/src/grouper/grouper.apiBinary-2.1.2/conf/grouper.hibernate.pro
>> perties
>> grouper.hibernate.properties:
>> gws@jdbc:postgresql://iamdb11.cac.washington.edu/gws2
>> sources.xml read from:
>> /data/local/src/grouper/grouper.apiBinary-2.1.2/conf/sources.xml
>> sources.xml jdbc source id: eppn:
>> gws@jdbc:postgresql://iamdb11.cac.washington.edu/gws2
>> sources.xml groupersource id: g:gsa
>> sources.xml jdbc source id: dns:
>> gws@jdbc:postgresql://iamdb11.cac.washington.edu/gws2
>> sources.xml groupersource id: grouperEntities
>> sources.xml jdbc source id: uwpds:
>> gws@jdbc:postgresql://iamdb11.cac.washington.edu/gws2
>> sources.xml jdbc source id: uwwi:
>> gws@jdbc:postgresql://iamdb11.cac.washington.edu/gws2
>> Type help() for instructions
>> gsh 0% GrouperSession.startRootSession()
>> edu.internet2.middleware.grouper.GrouperSession:
>> 09411664c1994354bf09ed14a338ba04,'GrouperSystem','application'
>> gsh 1% usdu()
>> <some missing subjects>
>> usdu completed successfully
>> --------------------------------------------
>>
>> but after that I didn't get any updates to the sort search fields.
>>
>> In sources.xml I have, in uppds where all the people are
>>
>> <source
>> adapterClass="edu.internet2.middleware.grouper.subj.GrouperJdbcSourceAdapt
>> er">
>> <id>uwpds</id>
>> <name>UW PDS people</name>
>> <type>person</type>
>> ...
>> <init-param>
>> <param-name>sortAttribute0</param-name>
>> <param-value>name</param-value>
>> </init-param>
>> <init-param>
>> <param-name>sortAttribute1</param-name>
>> <param-value>lastname</param-value>
>> </init-param>
>> <init-param>
>> <param-name>sortAttribute2</param-name>
>> <param-value>firstname</param-value>
>> </init-param>
>> ...
>>
>>
>> The system is generally able to find and add members. Even after adding
>> someone to a group the sort/search fields for that member are still blank.
>>
>>
>> Is there a switch somewhere indicating whether or not to use those fields?
>>
>> Where in the code is the update done?
>>
>> Thanks,
>>
>> Jim
>>
>




Archive powered by MHonArc 2.6.16.

Top of Page