mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

sin
24.33.2008 900a5ecfa946fd5bf5692efbd729af1144c57c75
3493: LDAP Error message is repeated 3 times
1 files modified
9 ■■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/core/AddOperationBasis.java 9 ●●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/core/AddOperationBasis.java
@@ -110,7 +110,8 @@
  // The change number that has been assigned to this operation.
  private long changeNumber;
  // The flag indicates if  an LDAP error was reported.
  private boolean ldapError;
  /**
   * Creates a new add operation with the provided information.
   *
@@ -358,8 +359,8 @@
   */
  private final void computeObjectClassesAndAttributes()
  {
    if ((objectClasses == null) || (userAttributes == null) ||
        (operationalAttributes == null))
    if (((objectClasses == null) || (userAttributes == null) ||
        (operationalAttributes == null))  && !ldapError)
    {
      objectClasses         = new HashMap<ObjectClass,String>();
      userAttributes        = new HashMap<AttributeType,List<Attribute>>();
@@ -387,6 +388,7 @@
              objectClasses = null;
              userAttributes = null;
              operationalAttributes = null;
              ldapError = true;
              return;
            }
          }
@@ -460,6 +462,7 @@
          objectClasses = null;
          userAttributes = null;
          operationalAttributes = null;
          ldapError = true;
        }
      }
    }