Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] xmlExport: how to export groups without any uuid reference?

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] xmlExport: how to export groups without any uuid reference?

Chronological Thread 
  • From: Chris Hyzer <>
  • To: Dominique Petitpierre <>, "" <>
  • Subject: RE: [grouper-users] xmlExport: how to export groups without any uuid reference?
  • Date: Mon, 11 Mar 2013 19:59:51 +0000
  • Accept-language: en-US
  • Authentication-results:; dkim=neutral (message not signed) header.i=none

I will look into this in a bit, but FYI the api doc you refer to doesn’t
affect the new-style import/export (1.6+).

It is not very configurable. Im surprised that effective members are
exported... hmmm


-----Original Message-----

On Behalf Of Dominique Petitpierre
Sent: Monday, March 11, 2013 3:44 PM

Subject: [grouper-users] xmlExport: how to export groups without any uuid


- Is it possible to export groups to an xml file without reference to
any uuid?

When setting the property export.uuids to false, while it does remove
the uuid from the definition of a group, the exported file still
contains uuid for referenced groups.

In a simple test where test:t:g1 is member of test:t:g2, after
exporting test:t to t.xml with a gsh script using xmlExport, one gets:

egrep 'subject.*test:t:g1|export.uuids' /tmp/t.xml
<subject identifier='test:t:g1' type='group' source='g:gsa'
immediate='true' id='ada0da3b60ab43dbb2ca364101e47df2'
<option key='export.uuids'>false</option>

I would like to use xmlExport and xmlImport to copy groups between
instances of Grouper (test to production or 1.6.3 to 2.1.3). With
this behavior, when using xmlImport with t.xml there is an error for
the group subject:

grep 'ERROR.*test:t:g2' logs/grouper_error.log
2013-03-11 20:09:57,241: [main] ERROR
XmlImporter._processMembershipListAddMember(1387) - - Could not add
member to field members of test:t:g2 for subject

If the reference (id='ada0da3b60ab43dbb2ca364101e47df2') is removed
by hand from the xml file, then the group subject test:t:g1 is
successfully imported as a member.

The API doc says

If true group and stem uuids will be exported
cf. e.g.:,%20java.util.Properties%29

This behavior occurs with both 1.6.3 and 2.1.3.

By the way
- What would you advise as properties and parameters for xmlExport and
xmlImport to copy the entire hierarchy of groups between two
instances of Grouper?

This is what I am considering:


Best regards,
Mr Dominique Petitpierre, user=Dominique.Petitpierre
IT Division, University of Geneva, Switzerland

Archive powered by MHonArc 2.6.16.

Top of Page