Bug 793956 (JBEPP-1027) - Support for system property substitution in PicketLink IDM configuration
Summary: Support for system property substitution in PicketLink IDM configuration
Keywords:
Status: CLOSED NEXTRELEASE
Alias: JBEPP-1027
Product: JBoss Enterprise Portal Platform 5
Classification: JBoss
Component: Portal
Version: 5.1.0.GA
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 5.2.1.GA
Assignee: mposolda
QA Contact:
URL: http://jira.jboss.org/jira/browse/JBE...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-27 11:17 UTC by Martin Weiler
Modified: 2018-11-27 20:07 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-02-20 13:37:52 UTC
Type: Feature Request
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBEPP-1027 0 Major Closed Support for system property substitution in PicketLink IDM configuration 2014-09-04 12:30:05 UTC

Description Martin Weiler 2011-07-27 11:17:37 UTC
Help Desk Ticket Reference: https://na7.salesforce.com/500A0000007qDjJ
project_key: JBEPP

It would be nice to be able to externalize some configuration settings from IDM configs, eg:

          <option>
            <name>providerURL</name>
            <value>${ldap.host}</value>
          </option>

which could then be provided as system properties, eg. -Dldap.host=xyz at server start

Comment 2 Jared MORGAN 2011-11-16 04:18:49 UTC
Release Notes Docs Status: Added: Not Yet Documented


Comment 5 Thomas Heute 2011-12-15 10:46:46 UTC
Labels: Added: EPP_5_2_1_Candidate


Comment 7 Thomas Heute 2012-01-13 13:53:38 UTC
Labels: Removed: EPP_5_2_1_Candidate 


Comment 8 mposolda 2012-01-27 08:31:13 UTC
Possible think to support could be also default values of system properties, which is supported in JBoss AS or in eXo kernel config files. Something like: <value>${gatein.default.jgroups.stack:udp}</value>

Comment 9 mposolda 2012-02-02 14:39:32 UTC
Fixed in Picketlink IDM trunk and will be available in next version of PLIDM. See https://source.jboss.org/changelog/PicketLink?cs=1365 . Substitution is supported for every String element in Picketlink IDM configuration file. And it's supporting same substitution like in JBoss AS,which means:

<value>${property1}</value> - Substitution with system property "property1"

<value>${property1:defaultValue}</value> - Substitution with system property "property1" and using value "defaultValue" if this system property is not set.

<value>${property1,property2:defaultValue}</value> - Substitution with systemproperty "property1". If not set, then trying system property "property2". If nor "property1" and "property2" are not set, then fallback to "defaultValue".

Comment 10 mposolda 2012-02-02 14:40:55 UTC
Only required action is new release of Picketlink IDM and update dependency in EPP pom.xml .

Comment 11 mposolda 2012-02-20 13:37:52 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Release notes docs status: Not Yet Documented 

Release notes text: CAUSE: Picketlink IDM did not support substitution of system properties in it's configuration files.

FIX: New feature added into Picketlink IDM and EPP has been updated to use this version. Now it's possible to use substitution in configuration file of Picketlink IDM. 


Substitution is
supported for every String element in Picketlink IDM configuration file. And
it's supporting same substitution like in JBoss AS,which means:

<value>${property1}</value> - Substitution with system property "property1"

<value>${property1:defaultValue}</value> - Substitution with system property
"property1" and using value "defaultValue" if this system property is not set.

<value>${property1,property2:defaultValue}</value> - Substitution with
systemproperty "property1". If not set, then trying system property
"property2". If nor "property1" and "property2" are not set, then fallback to
"defaultValue".

Comment 12 Jared MORGAN 2012-03-13 23:39:38 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1,20 +1,15 @@
-Release notes docs status: Not Yet Documented 
+Picketlink IDM did not support system property substitution in the configuration files. 
 
-Release notes text: CAUSE: Picketlink IDM did not support substitution of system properties in it's configuration files.
+The fix implements parameters that allow system property substitution. Substitution is supported for every String element in the Picketlink IDM configuration file. The substitution operates in the same way as JBoss Enterprise Application Platform substitution. Usage examples follow. 
 
-FIX: New feature added into Picketlink IDM and EPP has been updated to use this version. Now it's possible to use substitution in configuration file of Picketlink IDM. 
+<itemizedlist>
-
+  <listitem>
-
+    <para>${property1} - Substitutes the system property &quot;property1&quot;.</para>
-Substitution is
+  </listitem>
-supported for every String element in Picketlink IDM configuration file. And
+  <listitem>
-it's supporting same substitution like in JBoss AS,which means:
+    <para>${property1:defaultValue} - Substitutes the system property &quot;property1&quot;, and passes the &quot;defaultValue&quot; value if the system property is not set.</para>
-
+  </listitem>
-<value>${property1}</value> - Substitution with system property "property1"
+  <listitem>
-
+    <para>${property1,property2:defaultValue} - Substitutes the system property &quot;property1&quot;, then attempts to set the &quot;property2&quot; system property. If &quot;property1&quot; and &quot;property2&quot; are not set, fallback to  &quot;defaultValue&quot;.</para>
-<value>${property1:defaultValue}</value> - Substitution with system property
+  </listitem>
-"property1" and using value "defaultValue" if this system property is not set.
+</itemizedlist>-
-<value>${property1,property2:defaultValue}</value> - Substitution with
-systemproperty "property1". If not set, then trying system property
-"property2". If nor "property1" and "property2" are not set, then fallback to
-"defaultValue".


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