summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorMatthew Harmsen <mharmsen@redhat.com>2013-01-04 22:01:07 -0800
committerMatthew Harmsen <mharmsen@redhat.com>2013-01-07 12:00:46 -0800
commitb61f31bf15e733de5881cc070feb57aa3686c92d (patch)
tree33f6644f94e48955deadb8e5b2942414fb187136 /base
parent4faa78799a947b7c06db6835ac25c0954e102c5a (diff)
downloadpki-b61f31bf15e733de5881cc070feb57aa3686c92d.tar.gz
pki-b61f31bf15e733de5881cc070feb57aa3686c92d.tar.xz
pki-b61f31bf15e733de5881cc070feb57aa3686c92d.zip
Use tomcatjss 7.1.0 and fix weird errno=0 exception
* TRAC Ticket #469 - Dogtag 10: Fix tomcatjss issue in pki-core.spec and dogtag-pki.spec . . . * TRAC Ticket #468 - pkispawn throws exception
Diffstat (limited to 'base')
-rw-r--r--base/common/shared/conf/pki.policy2
-rw-r--r--base/deploy/etc/default.cfg2
-rw-r--r--base/deploy/scripts/operations2
-rw-r--r--base/deploy/src/scriptlets/pkijython.py8
4 files changed, 10 insertions, 4 deletions
diff --git a/base/common/shared/conf/pki.policy b/base/common/shared/conf/pki.policy
index 4ae2de734..52e3d7fe1 100644
--- a/base/common/shared/conf/pki.policy
+++ b/base/common/shared/conf/pki.policy
@@ -138,7 +138,7 @@ grant codeBase "file:/usr/share/java/tomcat/-" {
permission java.security.AllPermission;
};
-grant codeBase "file:/usr/share/java/tomcat7jss.jar" {
+grant codeBase "file:/usr/share/java/tomcatjss.jar" {
permission java.security.AllPermission;
};
diff --git a/base/deploy/etc/default.cfg b/base/deploy/etc/default.cfg
index 238912fcb..3106ba53f 100644
--- a/base/deploy/etc/default.cfg
+++ b/base/deploy/etc/default.cfg
@@ -291,7 +291,7 @@ pki_resteasy_jaxb_provider_jar=%(resteasy_lib)s/resteasy-jaxb-provider.jar
pki_resteasy_jaxrs_jar=%(resteasy_lib)s/resteasy-jaxrs.jar
pki_resteasy_jettison_provider_jar=%(resteasy_lib)s/resteasy-jettison-provider.jar
pki_scannotation_jar=/usr/share/java/scannotation.jar
-pki_tomcatjss_jar=/usr/share/java/tomcat7jss.jar
+pki_tomcatjss_jar=/usr/share/java/tomcatjss.jar
pki_velocity_jar=/usr/share/java/velocity.jar
pki_xerces_j2_jar=/usr/share/java/xerces-j2.jar
pki_xml_commons_apis_jar=/usr/share/java/xml-commons-apis.jar
diff --git a/base/deploy/scripts/operations b/base/deploy/scripts/operations
index 227250d59..63a6bdbe7 100644
--- a/base/deploy/scripts/operations
+++ b/base/deploy/scripts/operations
@@ -1210,7 +1210,7 @@ verify_symlinks()
[resteasy-jaxrs.jar]=${RESTEASY_LIB}/resteasy-jaxrs.jar
[resteasy-jettison-provider.jar]=${RESTEASY_LIB}/resteasy-jettison-provider.jar
[scannotation.jar]=${java_dir}/scannotation.jar
- [tomcatjss.jar]=${java_dir}/tomcat7jss.jar
+ [tomcatjss.jar]=${java_dir}/tomcatjss.jar
[velocity.jar]=${java_dir}/velocity.jar
[xerces-j2.jar]=${java_dir}/xerces-j2.jar
[xml-commons-apis.jar]=${java_dir}/xml-commons-apis.jar
diff --git a/base/deploy/src/scriptlets/pkijython.py b/base/deploy/src/scriptlets/pkijython.py
index fac352fdb..a7635c130 100644
--- a/base/deploy/src/scriptlets/pkijython.py
+++ b/base/deploy/src/scriptlets/pkijython.py
@@ -313,7 +313,13 @@ class rest_client:
try:
os.makedirs(path)
except OSError, e:
- if exc.errno == errno.EEXIST and os.path.isdir(path):
+ if e.errno == 0:
+ # Avoid the following weird python/jython exception:
+ #
+ # [Errno 0] couldn't make directories: <path>
+ #
+ pass
+ elif e.errno == errno.EEXIST and os.path.isdir(path):
pass
else:
raise