Skip to Content.
Sympa Menu

grouper-dev - [grouper-dev] Change to GroupSave in 2.3.0

Subject: Grouper Developers Forum

List archive

[grouper-dev] Change to GroupSave in 2.3.0


Chronological Thread 
  • From: Jim Fox <>
  • To: Grouper Dev <>
  • Subject: [grouper-dev] Change to GroupSave in 2.3.0
  • Date: Tue, 8 Nov 2016 12:17:42 -0800 (PST)
  • Ironport-phdr: 9a23:oV4EHhNGa6vFlp0iWwUl6mtUPXoX/o7sNwtQ0KIMzox0KPr8rarrMEGX3/hxlliBBdydsKMezbuJ+Pu7EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6anHS+4HYoFwnlMkItf6KuS9SU3pv8jLv60qaQSj0AvCC6b7J2IUf+hiTqne5Sv7FfLL0swADCuHpCdrce72ppIVWOg0S0vZ/or9ZLuh5dsPM59sNGTb6yP+FhFeQZX3waNDUa/sr2rRTZBSeC+DNIXX8RjwJFGU3J4Q/SX5HtvzH8u/YnniSWIJulY6ozXGGA7qIjZhj4wHMJMC4R72jMis12g75cplSsqwEpkN2cW52cKPcrJvCVRtgdX2cUG58JDyE=



This is about a change to the 'save' method in 2.3.0's GroupSave.java (about
line 375)

A new segment is added that did not appear in 2.1.2

//get from uuid since could be a rename
if (StringUtils.isBlank(this.groupNameToEdit) &&
!StringUtils.isBlank(this.uuid)) {
Group group =
GroupFinder.findByUuid(GrouperSession.staticGrouperSession(), this.uuid,
true);
this.groupNameToEdit = group.getName();
}

I'm doing an insert.

According to the documentation groupNameToEdit should be null, and uuid
should be the uuid of the new group.

The call to findByUuid is always going to except.

If I set the groupNameToEdit I get through this section. That's contrary to
the doc and 2.1.2 usage.

The code is from grouper.api-2.3.0.tar.gz, from the downloads page.


Jimkk



Archive powered by MHonArc 2.6.19.

Top of Page