summaryrefslogtreecommitdiffstats
path: root/pki/base
diff options
context:
space:
mode:
Diffstat (limited to 'pki/base')
-rw-r--r--pki/base/common/src/com/netscape/cms/profile/common/BasicProfile.java11
1 files changed, 4 insertions, 7 deletions
diff --git a/pki/base/common/src/com/netscape/cms/profile/common/BasicProfile.java b/pki/base/common/src/com/netscape/cms/profile/common/BasicProfile.java
index ec1a277f..aac1bb3c 100644
--- a/pki/base/common/src/com/netscape/cms/profile/common/BasicProfile.java
+++ b/pki/base/common/src/com/netscape/cms/profile/common/BasicProfile.java
@@ -810,7 +810,6 @@ public abstract class BasicProfile implements IProfile {
}
// Now make sure we aren't trying to add a policy that already exists
- // Make sure the combo of defaultClassId and constraintClassId does not exist
IConfigStore policySetStore = mConfig.getSubStore("policyset");
String setlist = null;
try {
@@ -858,14 +857,12 @@ public abstract class BasicProfile implements IProfile {
CMS.debug("WARNING, can't get constraint plugin id!");
}
- //Disallow duplicate defaults or constraints with the following exceptions:
- // noDefaultImpl, genericExtDefaultImpl, noDefaultConstraint
-
+ //Disallow duplicate defaults with the following exceptions:
+ // noDefaultImpl, genericExtDefaultImpl
+
if ((curDefaultClassId.equals(defaultClassId) &&
!curDefaultClassId.equals(PROP_NO_DEFAULT) &&
- !curDefaultClassId.equals(PROP_GENERIC_EXT_DEFAULT)) ||
- (curConstraintClassId.equals(constraintClassId) &&
- !curConstraintClassId.equals(PROP_NO_CONSTRAINT))) {
+ !curDefaultClassId.equals(PROP_GENERIC_EXT_DEFAULT)) ) {
matches++;
if (createConfig) {