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

matthew_swift
05.42.2009 22094368c2865dcfb6daf8366425212b721a4657
opends/src/server/org/opends/server/authorization/dseecompat/PatternRDN.java
@@ -273,13 +273,13 @@
        // Handle this just like a substring filter.
        ByteString subInitial = pattern.get(0);
        if (subInitial.value().length == 0)
        if (subInitial.length() == 0)
        {
          subInitial = null;
        }
        ByteString subFinal = pattern.get(pattern.size() - 1);
        if (subFinal.value().length == 0)
        if (subFinal.length() == 0)
        {
          subFinal = null;
        }
@@ -308,7 +308,8 @@
      }
      else
      {
        ByteString thisNormValue = type.normalize(pattern.get(0));
        ByteString thisNormValue =
            type.getEqualityMatchingRule().normalizeValue(pattern.get(0));
        ByteString thatNormValue = value.getNormalizedValue();
        EqualityMatchingRule mr = type.getEqualityMatchingRule();
        return mr.areEqual(thisNormValue, thatNormValue);