Bug 1018683 - One off patch of BZ 1016420 - AbstractInfinispanCacheProvider.getNamespaceForFqn replace inconsistency
Summary: One off patch of BZ 1016420 - AbstractInfinispanCacheProvider.getNamespaceFor...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Portal Platform 6
Classification: JBoss
Component: PicketLink
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: One-off release
Assignee: Gary Hu
QA Contact: Dominik Pospisil
URL:
Whiteboard:
Depends On: 1016420 1032440
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-14 07:45 UTC by Adam Kovari
Modified: 2018-12-03 20:16 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
PATCH NAME: 1018683 PRODUCT NAME: JBoss Portal Platform (JPP) VERSION: 6.0 SHORT DESCRIPTION: Picketlink IDM cache can't be invalidated when realm name containing slash. LONG DESCRIPTION: Picketlink cache implementation brings inconsistency in namespace by replacing the slash with hyphen. MANUAL INSTALL INSTRUCTIONS: Replace the files $JPP6.0_HOME/modules/org/gatein/lib/main/picketlink-idm-cache-1.4.1.Final-redhat-1.jar $JPP6.0_HOME/modules/org/gatein/lib/main/picketlink-idm-core-1.4.1.Final-redhat-1.jar $JPP6.0_HOME/modules/org/gatein/lib/main/picketlink-idm-hibernate-1.4.1.Final-redhat-1.jar $JPP6.0_HOME/modules/org/gatein/lib/main/picketlink-idm-ldap-1.4.1.Final-redhat-1.jar with the patched ones. COMPATIBILITY: N/A DEPENDENCIES: N/A SUPERSEDES: N/A SUPERSEDED BY: N/A CREATOR: Gary Hu DATE: Oct 14, 2013
Clone Of: 1016420
Environment:
Last Closed: 2013-10-18 13:45:13 UTC
Type: Support Patch
Embargoed:


Attachments (Terms of Use)
picketlink-idm-cache-1.4.1.Final-redhat-1.jar (31.17 KB, patch)
2013-10-15 04:30 UTC, Gary Hu
no flags Details | Diff
picketlink-idm-core-1.4.1.Final-redhat-1.jar (227.37 KB, patch)
2013-10-15 04:30 UTC, Gary Hu
no flags Details | Diff
picketlink-idm-hibernate-1.4.1.Final-redhat-1.jar (63.00 KB, patch)
2013-10-15 04:31 UTC, Gary Hu
no flags Details | Diff
picketlink-idm-ldap-1.4.1.Final-redhat-1.jar (56.43 KB, patch)
2013-10-15 04:32 UTC, Gary Hu
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 516053 0 None None None Never

Comment 2 Gary Hu 2013-10-15 04:30:09 UTC
Created attachment 812306 [details]
picketlink-idm-cache-1.4.1.Final-redhat-1.jar

Comment 3 Gary Hu 2013-10-15 04:30:45 UTC
Created attachment 812307 [details]
picketlink-idm-core-1.4.1.Final-redhat-1.jar

Comment 4 Gary Hu 2013-10-15 04:31:25 UTC
Created attachment 812308 [details]
picketlink-idm-hibernate-1.4.1.Final-redhat-1.jar

Comment 5 Gary Hu 2013-10-15 04:32:03 UTC
Created attachment 812309 [details]
picketlink-idm-ldap-1.4.1.Final-redhat-1.jar

Comment 7 Adam Kovari 2013-10-15 07:27:37 UTC
Here is how I tested the patch:
To install the patch, please copy the files in the place of the original ones:

cp picketlink-idm-cache-1.4.1.Final-redhat-1.jar ./modules/org/gatein/lib/main/picketlink-idm-cache-1.4.1.Final-redhat-1.jar
cp picketlink-idm-core-1.4.1.Final-redhat-1.jar ./modules/org/gatein/lib/main/picketlink-idm-core-1.4.1.Final-redhat-1.jar
cp picketlink-idm-hibernate-1.4.1.Final-redhat-1.jar ./modules/org/gatein/lib/main/picketlink-idm-hibernate-1.4.1.Final-redhat-1.jar
cp picketlink-idm-ldap-1.4.1.Final-redhat-1.jar ./modules/org/gatein/lib/main/picketlink-idm-ldap-1.4.1.Final-redhat-1.jar


Here is how I verified the patch:
- run JPP 6.0.0 without the patch, run a JConsole and connect to JBoss process, go to MBeans tab, find exo -> portal(the 2nd one from the top) -> PicketLinkIDMCacheService -> plidmcache -> Operations ->
and now you can do printCaches, to see that root user is cached. When you invoke a invalidate with parameter: idm_realm_portal/USERS/root, and rerun printCaches, nothing happens. When you apply the patch, and run invalidate on this method, you will see that the user is properly invalidated.

Comment 8 Petr Mensik 2013-10-17 12:06:05 UTC
I was able to reproduce the test suggested by Adam Kovari, so this patch fixes the issue.

MD5 sums of the JAR files

a5ea3eaee46a4b012b3556434102eb8d  picketlink-idm-cache-1.4.1.Final-redhat-1.jar
7f2ad34fbe427cec563cf2c360e50351  picketlink-idm-core-1.4.1.Final-redhat-1.jar
41c27a700c6b73aa3a936758b95fdc08  picketlink-idm-hibernate-1.4.1.Final-redhat-1.jar
a132c7519a02e09b7d2e38e67caf5087  picketlink-idm-ldap-1.4.1.Final-redhat-1.jar


Note You need to log in before you can comment on or make changes to this bug.