Blame SOURCES/0006-Added-new-link-for-resteasy-dependency.patch

f332ec
From cbd26eee9194438627a7f0949bde9fa4f582ca8c Mon Sep 17 00:00:00 2001
f332ec
From: Ade Lee <alee@redhat.com>
f332ec
Date: Wed, 30 Oct 2013 17:03:15 -0400
f332ec
Subject: [PATCH 6/6] Added new link for resteasy dependency
f332ec
f332ec
    Resteasy 2.3.5 uses apache-commons-io.  Not having a link to
f332ec
    this jar results in IPA replica installs failing.
f332ec
f332ec
    Resolves: rhbz 1024679
f332ec
---
f332ec
 base/common/shared/conf/pki.policy            | 4 ++++
f332ec
 base/java-tools/pki                           | 1 +
f332ec
 base/server/etc/default.cfg                   | 2 ++
f332ec
 base/server/scripts/operations                | 1 +
f332ec
 base/server/src/scriptlets/instance_layout.py | 2 ++
f332ec
 5 files changed, 10 insertions(+)
f332ec
f332ec
diff --git a/base/common/shared/conf/pki.policy b/base/common/shared/conf/pki.policy
f332ec
index 52e3d7f..df9157e 100644
f332ec
--- a/base/common/shared/conf/pki.policy
f332ec
+++ b/base/common/shared/conf/pki.policy
f332ec
@@ -46,6 +46,10 @@ grant codeBase "file:/usr/share/java/apache-commons-collections.jar" {
f332ec
         permission java.security.AllPermission;
f332ec
 };
f332ec
 
f332ec
+grant codeBase "file:/usr/share/java/apache-commons-io.jar" {
f332ec
+        permission java.security.AllPermission;
f332ec
+};
f332ec
+
f332ec
 grant codeBase "file:/usr/share/java/apache-commons-lang.jar" {
f332ec
         permission java.security.AllPermission;
f332ec
 };
f332ec
diff --git a/base/java-tools/pki b/base/java-tools/pki
f332ec
index b7d9bfe..5821620 100755
f332ec
--- a/base/java-tools/pki
f332ec
+++ b/base/java-tools/pki
f332ec
@@ -80,6 +80,7 @@ $ENV{CLASSPATH} = "/usr/share/java/${PRODUCT}/pki-certsrv.jar:"
f332ec
                 . "/usr/share/java/${PRODUCT}/pki-tools.jar:"
f332ec
                 . "/usr/share/java/apache-commons-cli.jar:"
f332ec
                 . "/usr/share/java/apache-commons-codec.jar:"
f332ec
+                . "/usr/share/java/apache-commons-io.jar:"
f332ec
                 . "/usr/share/java/apache-commons-lang.jar:"
f332ec
                 . "/usr/share/java/apache-commons-logging.jar:"
f332ec
                 . "/usr/share/java/commons-httpclient.jar:"
f332ec
diff --git a/base/server/etc/default.cfg b/base/server/etc/default.cfg
f332ec
index f4ad2be..8559b42 100644
f332ec
--- a/base/server/etc/default.cfg
f332ec
+++ b/base/server/etc/default.cfg
f332ec
@@ -275,6 +275,7 @@ pki_nsutil_jar_link=%(pki_tomcat_webapps_subsystem_webinf_lib_path)s/pki-nsutil.
f332ec
 pki_jss_jar=%(jni_jar_dir)s/jss4.jar
f332ec
 pki_symkey_jar=%(jni_jar_dir)s/symkey.jar
f332ec
 pki_apache_commons_collections_jar=/usr/share/java/apache-commons-collections.jar
f332ec
+pki_apache_commons_io_jar=/usr/share/java/apache-commons-io.jar
f332ec
 pki_apache_commons_lang_jar=/usr/share/java/apache-commons-lang.jar
f332ec
 pki_apache_commons_logging_jar=/usr/share/java/apache-commons-logging.jar
f332ec
 pki_commons_codec_jar=/usr/share/java/commons-codec.jar
f332ec
@@ -304,6 +305,7 @@ pki_xml_commons_resolver_jar=/usr/share/java/xml-commons-resolver.jar
f332ec
 pki_jss_jar_link=%(pki_tomcat_common_lib_path)s/jss4.jar
f332ec
 pki_symkey_jar_link=%(pki_tomcat_common_lib_path)s/symkey.jar
f332ec
 pki_apache_commons_collections_jar_link=%(pki_tomcat_common_lib_path)s/apache-commons-collections.jar
f332ec
+pki_apache_commons_io_jar_link=%(pki_tomcat_common_lib_path)s/apache-commons-io.jar
f332ec
 pki_apache_commons_lang_jar_link=%(pki_tomcat_common_lib_path)s/apache-commons-lang.jar
f332ec
 pki_apache_commons_logging_jar_link=%(pki_tomcat_common_lib_path)s/apache-commons-logging.jar
f332ec
 pki_commons_codec_jar_link=%(pki_tomcat_common_lib_path)s/apache-commons-codec.jar
f332ec
diff --git a/base/server/scripts/operations b/base/server/scripts/operations
f332ec
index 8a703d6..df89ea6 100644
f332ec
--- a/base/server/scripts/operations
f332ec
+++ b/base/server/scripts/operations
f332ec
@@ -1197,6 +1197,7 @@ verify_symlinks()
f332ec
     common_jar_symlinks=(
f332ec
         [apache-commons-codec.jar]=${java_dir}/commons-codec.jar
f332ec
         [apache-commons-collections.jar]=${java_dir}/apache-commons-collections.jar
f332ec
+        [apache-commons-io.jar]=${java_dir}/apache-commons-io.jar
f332ec
         [apache-commons-lang.jar]=${java_dir}/apache-commons-lang.jar
f332ec
         [apache-commons-logging.jar]=${java_dir}/apache-commons-logging.jar
f332ec
         [httpclient.jar]=${java_dir}/httpcomponents/httpclient.jar
f332ec
diff --git a/base/server/src/scriptlets/instance_layout.py b/base/server/src/scriptlets/instance_layout.py
f332ec
index 07ae03e..1f75de7 100644
f332ec
--- a/base/server/src/scriptlets/instance_layout.py
f332ec
+++ b/base/server/src/scriptlets/instance_layout.py
f332ec
@@ -88,6 +88,8 @@ class PkiScriptlet(pkiscriptlet.AbstractBasePkiScriptlet):
f332ec
             # establish Tomcat instance common lib jar symbolic links
f332ec
             util.symlink.create(master['pki_apache_commons_collections_jar'],
f332ec
                 master['pki_apache_commons_collections_jar_link'])
f332ec
+            util.symlink.create(master['pki_apache_commons_io_jar'],
f332ec
+                master['pki_apache_commons_io_jar_link'])
f332ec
             util.symlink.create(master['pki_apache_commons_lang_jar'],
f332ec
                 master['pki_apache_commons_lang_jar_link'])
f332ec
             util.symlink.create(master['pki_apache_commons_logging_jar'],
f332ec
-- 
f332ec
1.8.3.1
f332ec