summaryrefslogtreecommitdiffstats
path: root/pki/base/common/src/com/netscape
diff options
context:
space:
mode:
authorvakwetu <vakwetu@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2011-07-19 19:21:28 +0000
committervakwetu <vakwetu@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2011-07-19 19:21:28 +0000
commitbc0baf482e50a18cdbf155168006d36f77bc12c6 (patch)
tree9285735bbb6e4ed251b17d4dfa3246fc762f6996 /pki/base/common/src/com/netscape
parentedd605f8ee83ffd902a9876136a80f586f0af637 (diff)
downloadpki-bc0baf482e50a18cdbf155168006d36f77bc12c6.tar.gz
pki-bc0baf482e50a18cdbf155168006d36f77bc12c6.tar.xz
pki-bc0baf482e50a18cdbf155168006d36f77bc12c6.zip
Bugzilla BZ#716307 - rhcs80 - DER shall not include an encoding for any component value which is equal to its default value
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@2065 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/base/common/src/com/netscape')
-rw-r--r--pki/base/common/src/com/netscape/cms/profile/def/NameConstraintsExtDefault.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/pki/base/common/src/com/netscape/cms/profile/def/NameConstraintsExtDefault.java b/pki/base/common/src/com/netscape/cms/profile/def/NameConstraintsExtDefault.java
index 21208b032..8da1809d7 100644
--- a/pki/base/common/src/com/netscape/cms/profile/def/NameConstraintsExtDefault.java
+++ b/pki/base/common/src/com/netscape/cms/profile/def/NameConstraintsExtDefault.java
@@ -305,8 +305,14 @@ public class NameConstraintsExtDefault extends EnrollExtDefault {
if(ext == null) {
return;
}
+ if ((value == null) || (value.equals("null")) || (value.equals(""))) {
+ CMS.debug("NameConstraintsExtDefault:setValue : " +
+ "blank value for permitted subtrees ... returning");
+ return;
+ }
+
Vector v = parseRecords(value);
-
+
Vector permittedSubtrees = createSubtrees(locale, v);
ext.set(NameConstraintsExtension.PERMITTED_SUBTREES,
@@ -318,6 +324,11 @@ public class NameConstraintsExtDefault extends EnrollExtDefault {
if(ext == null) {
return;
}
+ if ((value == null) || (value.equals("null")) || (value.equals(""))) {
+ CMS.debug("NameConstraintsExtDefault:setValue : " +
+ "blank value for excluded subtrees ... returning");
+ return;
+ }
Vector v = parseRecords(value);
Vector excludedSubtrees = createSubtrees(locale, v);