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

coulbeck
01.41.2007 b2c9a3066854aea4b62ec258e0afc3a57b1a3c75
Fix for issue #1562: Use of two ** notations results in bad ACI target application.
2 files modified
15 ■■■■ changed files
opends/src/server/org/opends/server/authorization/dseecompat/PatternDN.java 1 ●●●● patch | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/authorization/dseecompat/TargetTestCase.java 14 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/authorization/dseecompat/PatternDN.java
@@ -657,7 +657,6 @@
        // Initial piece.
        subInitial = new PatternRDN[to];
        subInitial = rdnComponents.subList(0, to).toArray(subInitial);
        i++;
      }
      int from;
opends/tests/unit-tests-testng/src/server/org/opends/server/authorization/dseecompat/TargetTestCase.java
@@ -86,7 +86,13 @@
         {
              "bjensen",
              "uid=bjensen"
         }
         },
         {
              "uid=dmiller, **, ou=branch level two, **, ou=aci branches, " +
                   "dc=example,dc=com",
              "uid=dmiller, ou=branch level three, ou=branch level two, " +
                   "ou=branch level one, ou=aci branches, dc=example,dc=com"
         },
    };
  }
@@ -119,6 +125,12 @@
              "uid=bj*+cn=*,ou=people,dc=example,dc=com",
              "sn=jensen+uid=bjensen,ou=people,dc=example,dc=com"
         },
         {
              "uid=dmiller, **, ou=Bad branch level, **, ou=aci branches, " +
                   "dc=example,dc=com",
              "uid=dmiller, ou=branch level three, ou=branch level two, " +
                   "ou=branch level one, ou=aci branches, dc=example,dc=com"
         },
    };
  }