Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] RE: Grouper xmlExport/import

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] RE: Grouper xmlExport/import


Chronological Thread 
  • From: Shilen Patel <>
  • To: Francis Bouchard-Boulianne <>
  • Cc: "" <>
  • Subject: Re: [grouper-users] RE: Grouper xmlExport/import
  • Date: Fri, 17 Nov 2017 14:06:47 +0000
  • Accept-language: en-US
  • Authentication-results: oit.duke.edu; spf=none
  • Ironport-phdr: 9a23:YgC64B+YMsFm6v9uRHKM819IXTAuvvDOBiVQ1KB+0uwQIJqq85mqBkHD//Il1AaPBtSLraocw8Pt8InYEVQa5piAtH1QOLdtbDQizfssogo7HcSeAlf6JvO5JwYzHcBFSUM3tyrjaRsdF8nxfUDdrWOv5jAOBBr/KRB1JuPoEYLOksi7ze6/9pnQbglSmDaxfa55IQmrownWqsQYm5ZpJLwryhvOrHtIeuBWyn1tKFmOgRvy5dq+8YB6/ShItP0v68BPUaPhf6QlVrNYFygpM3o05MLwqxbOSxaE62YGXWUXlhpIBBXF7A3/U5zsvCb2qvZx1S+HNsDtU7s6RSqt4LtqSB/wiScIKTg58H3MisdtiK5XuQ+tqwBjz4LRZoyeKfhwcb7Hfd4CRWRPQNtfVzBPDI2/YYQPDvYOMulDoobnu1cOqAGzCRW2Ce7tzDJDm3/43bc90+QkCQzIwQwgH9MKsHvKqtX+Kb0cXvqpzKbWyTXIcvRb2Sz96IjJdhAuv/eMUKltfsrMykkgCRnJgUuNpoz4Jj6Y0PkGvWac7+plT+2vimgnphlxojiz2scskpDFi4wPxV/c7Sp22oU1KseiRE5+et6rCJ9QuD+AOItsRMMtWXpnuCEnyr0aop67ZC8KyJMpxx7ebfyHfJCE4hPlVOaNPzh4nnRld6yjhxqs60Sv1PDzVtSs3FZStCpFld7Mtn4V1xzU68iHTOd98l291jaI0gDf8uFEIVwolarDMpIszKQ/mYILvkvZHS/5gl/6jKqNdko84ein8ernbav6pp6cK490ixn+Mr8gmsOhH+s3LxMBUHKH9uS/zLHj8lf5QLJXjv0ujKbZqonWKdoAqaGnDA5VyoEj6wyjDzu/ztgXhmUHLFVcdB6ZlIfmIUjCLO7jAvewmFSskC5ny+7dMb36HprNNHnDkK/9fbpl6k5czRIzzddF55JIE70NPu/8VVH+tdzACR85KRC0zuD6A9t+zoMTQX+DD6+HPK/Iv1KE/P8jLuqIaYMPpjrwJeQp6+bzgXI3mFIRZ6mk0JoNZH27BPhrI0eUbWLyjtsdE2oGpAUzQe3whFGfUDNeaWy+U7886zw9FYmoF53MRpq3j7yExCq7HoNZZmRBCl2UFHfnbYSEW/MVZCKdLM5tiyIIWLe7R48m1BGuqBX2xKd6LurX5CIUr4zs28Vo5+HLlBEy8yJ7D9iF3m2QT2x4gHkESjEs0KxiokFwzk2P3bZ2jvBEDdBT4ulGUgY+NZ7S1ex6DNXyVxrafteJSVamRsupATcqQ90s3t8OYFhyF8+8gR/ewiqmG6UVmKCTBJwo7qLc2GD8J8lny3bByakhl0cpQtFWOW27na5w6RLTB5XSnkWdlqaqbrgc3DXT+GuZzGqOul1YXxBqUaXDQ38felXaoc7n6UzfUr/9QYggZyVbwMiJK7ACQNr0hlVPXvumEtPDZ2O4nWG9TUKm3LqKZ4vxPU8awS7dAVII1ioU4HKHPA44Cw+cmGLTFjZ0ElXsbgXn+L8thmm8SxoPzwCOYksp77Op9xpd0eecSvce2JoIpSQs7Th4AQDujJrtF9Ocql85L+1natQn7QICjDqBug==
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

This is resolved in API patch 83.

 

https://bugs.internet2.edu/jira/browse/GRP-1625

https://bugs.internet2.edu/jira/browse/GRP-1626

 

Thanks!

 

- Shilen

 

From: <> on behalf of Francis Bouchard-Boulianne <>
Date: Tuesday, November 14, 2017 at 12:29 PM
To: "" <>
Subject: [grouper-users] RE: Grouper xmlExport/import

 

Hi,

 

I tried reimporting the exported gsh and I have problems. The export adds variable declaration to the gsh and this seems to bug gsh (using version grouper 2.3.0 with groovyshell 2.4.11 jvm 1.8.0_XXX).

 

I am doing this :

new XmlExportGshScript().assignStemName("udes").assignFileNameToWriteTo(fileName).exportGsh()

 

and it produces :

*GrouperSession* grouperSession = GrouperSession.startRootSession();

long gshTotalObjectCount = 0L;

long gshTotalChangeCount = 0L;

long gshTotalErrorCount = 0L;

*StemSave* stemSave = new StemSave(grouperSession).assignName("udes:etc").assignCreateParentStemsIfNotExist(true).assignDisplayName("udes:etc");

stem = stemSave.save();

gshTotalObjectCount++;

if (stemSave.getSaveResultType() != SaveResultType.NO_CHANGE) { System.out.println("Made change for stem: " + stem.getName()); gshTotalChangeCount++;}

*StemSave* stemSave = new StemSave(grouperSession).assignName("udes:etc:defs").assignCreateParentStemsIfNotExist(true).assignDisplayName("udes:etc:defs");

stem = stemSave.save();

 

If I remove the declaration (between *) it works. But is it not very convenient.

I also tried the interpreterMode preference without success.

 

To load the backup:

Groovy :000> :load /path/to/file

Or

Shell> ./gsh /path/to/file

Any ideas to fix this ?

 

Thanks.

Francis

 

 

De : [mailto:] De la part de Francis Bouchard-Boulianne
Envoyé : 6 novembre 2017 12:50
À : Hyzer, Chris <>;
Objet : [grouper-users] RE: Grouper xmlExport/import

 

Cet expéditeur n’a pas passé les vérifications relatives à la détection des fraudes et n’est peut-être pas la personne qu’il prétend être. En savoir plus sur l’ usurpation d’identités

Commentaires

Thanks, this is exactly what I was looking for.

 

Regards.

 

Francis

 

De : [] De la part de Hyzer, Chris
Envoyé : 1 novembre 2017 14:50
À : Francis Bouchard-Boulianne <>;
Objet : [grouper-users] RE: Grouper xmlExport/import

 

Are you talking about the grouper_members table?  Yes, it puts them in that table but doesn’t end up using them.

 

You could try using this instead…

 

https://spaces.internet2.edu/display/Grouper/Grouper+export+to+a+GSH+script

 

Thanks

Chris

 

From: [] On Behalf Of Francis Bouchard-Boulianne
Sent: Wednesday, November 01, 2017 2:01 PM
To:
Subject: [grouper-users] Grouper xmlExport/import

 

Hi all,

 

We’re pretty new to grouper and wanted to reinstall a « clean » dev instance. I thouth I could use the export/import feature for our main stem. So I did :

gsh –xmlexport –stems udes -excludeAudits …

 

We are configured with two external database subjectSource and a CAS login to the admins UI.

The problem seems that i twill export ALL subjects from ou sources and try to import them as local subjects (in the subject table).

 

Am I not understanding the utility of the export/import ?

https://spaces.internet2.edu/display/Grouper/Import-Export

 

Am I using the wrong tool ?

 

___________________________________________

Francis Bouchard B.

Analyse – Analyse et assurance qualité - division Systèmes d’information.

Service des technologies de l’information

Université de Sherbrooke

 

Tél. : 819 821-8000, poste 63465

Courriel :

 



  • Re: [grouper-users] RE: Grouper xmlExport/import, Shilen Patel, 11/17/2017

Archive powered by MHonArc 2.6.19.

Top of Page