Skip to Content.
Sympa Menu

grouper-users - [grouper-users] RE: grouper patching

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] RE: grouper patching


Chronological Thread 
  • From: Chris Hyzer <>
  • To: "" <>
  • Subject: [grouper-users] RE: grouper patching
  • Date: Sun, 18 Jan 2015 20:53:01 +0000
  • Accept-language: en-US

 

The grouper v2.2.1 installer can now patch grouper.  See details below. 

 

Patches are listed on release notes, for 2.2.1 they are listed here:

 

https://spaces.internet2.edu/display/Grouper/v2.2+Release+Notes

 

Note, if you have already been patching, there was a slight change.  There was a UI patch (#3) that had API resources in it, and we moved that to an API patch.  Its not that big of a deal, nothing bad can happen, but to fix this, just edit your grouperPatchStatus.properties in your UI (in WEB-INF) and change:

 

FROM:

 

# added by grouper-installer

grouper_v2_2_1_ui_patch_3.date = 2015/01/18 17:46:24

 

# added by grouper-installer

grouper_v2_2_1_ui_patch_3.state = applied

 

 

TO:

 

# added by grouper-installer

grouper_v2_2_1_api_patch_2.date = 2015/01/18 17:46:24

 

# added by grouper-installer

grouper_v2_2_1_api_patch_2.state = applied

 

 

You can also remove these files:

 

rm -rf grouper_v2_2_1_ui_patch_3*

 

Then patch again, install the third UI #3 patch, which is a no op (blank), and you should be all set

 

thanks,

chris

 

 

 

From: Chris Hyzer
Sent: Thursday, December 18, 2014 2:38 PM
To:
Subject: grouper patching

 

I have a first pass at a utility that will patch a grouper installation.

 

Here is a wiki:

 

https://spaces.internet2.edu/display/Grouper/Grouper+patching

 

To try this out I have a grouperInstaller jar named grouperInstallerTemp.jar in Grouper 2.2.1. (see yellow below)

 

This will patch a 2.2.1, install a new 2.2.1 including patches, or upgrade to 2.2.1 including patches.  It can give patch status or revert patches as well.

 

If you have a chance to give it a shot, let me know how it goes J

 

Thanks,

Chris

 

 

Here is an example:

 

 

[mchyzer@i2mibuild installer]$ wget http://software.internet2.edu/grouper/release/2.2.1/grouperInstallerTemp.jar

--2014-12-18 19:26:11--  http://software.internet2.edu/grouper/release/2.2.1/grouperInstallerTemp.jar

Resolving software.internet2.edu... 207.75.164.151, 2001:48a8:68fe::151

Connecting to software.internet2.edu|207.75.164.151|:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 1710516 (1.6M) [application/x-java-archive]

Saving to: `grouperInstallerTemp.jar'

 

100%[==========================================================================================>] 1,710,516   --.-K/s   in 0.02s  

 

2014-12-18 19:26:11 (80.8 MB/s) - `grouperInstallerTemp.jar' saved [1710516/1710516]

 

[mchyzer@i2mibuild installer]$ java -jar grouperInstallerTemp.jar

Do you want to 'install' a new installation of grouper, 'upgrade' an existing installation

  or 'patch' an existing installation

  (enter: 'install', 'upgrade', 'patch' or blank for the default) [install]: patch

Enter in a Grouper temp directory to download tarballs (note: better if no spaces or special chars) [C:\app\grouperInstallerTarballDir]: 

What do you want to patch?  api, ui, ws, or psp? [psp]: ui

Where is the grouper UI installed? [C:\app\grouper_2_2_1_installer\grouper.ui-2.2.1\dist\grouper]: 

What do you want to do with patches (install, revert, status)? [install]: 

 

################ Checking patch grouper_v2_2_1_api_patch_0

Downloading from URL: http://software.internet2.edu/grouper/release/2.2.1/patches/grouper_v2_2_1_api_patch_0.tar.gz to file: C:\app\grouperInstallerTarballDir\grouper_v2_2_1_api_patch_0.tar.gz

Unzipping: C:\app\grouperInstallerTarballDir\grouper_v2_2_1_api_patch_0.tar.gz

Expanding: C:\app\grouperInstallerTarballDir\grouper_v2_2_1_api_patch_0.tar

Patch grouper_v2_2_1_api_patch_0 is low risk, is not a security patch

This patch fixes GRP-1095: hibernate exception handling masked original exception if roll

Would you like to install patch grouper_v2_2_1_api_patch_0 (t|f)? [t]: 

 

 - added to end of property file: grouper_v2_2_1_api_patch_0.date = 2014/12/18 09:32:08

This patch requires all processes that user Grouper to be stopped.

  Please stop these processes if they are running and press <enter> to continue...

 

Applying file: C:\app\grouper_2_2_1_installer\grouper.ui-2.2.1\dist\grouper\WEB-INF\classes\edu\internet2\middleware\grouper\hibernate\HibernateSession.class

Applying file: C:\app\grouper_2_2_1_installer\grouper.ui-2.2.1\dist\grouper\WEB-INF\classes\edu\internet2\middleware\grouper\hibernate\HibernateSession.java

Patch successfully applied: grouper_v2_2_1_api_patch_0

 - added to end of property file: grouper_v2_2_1_api_patch_0.state = applied

 



  • [grouper-users] RE: grouper patching, Chris Hyzer, 01/18/2015

Archive powered by MHonArc 2.6.16.

Top of Page