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

coulbeck
18.13.2006 365b9111189ba7fda737e717e16ef795d184a4eb
refs
author coulbeck <coulbeck@localhost>
Wednesday, October 18, 2006 19:13 +0200
committer coulbeck <coulbeck@localhost>
Wednesday, October 18, 2006 19:13 +0200
commit365b9111189ba7fda737e717e16ef795d184a4eb
tree 161b7571f2280a77d85fcefb52cd7c319065ae87 tree | zip | gz
parent 8433f75014868727a42b117b9eb869e6dffd1522 view | diff
Fix for  [Issue 846] DN embedded in a monitor instance name.  Reviewed by gbellato.

The fix is to avoid constructing an RDN using string concatenation of the attribute type and value, when the value could contain characters that need to be quoted inside of a DN. I looked through the rest of the code at uses of DN.decode() and RDN.decode() and did not find any other places where the same mistake has been made.

The changes include updated unit tests to catch this issue.
1 files added
3 files modified
166 ■■■■■ changed files
opends/src/server/org/opends/server/backends/MonitorBackend.java 5 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/core/DirectoryServer.java 34 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/monitors/InternalSearchMonitorTestCase.java 53 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/monitors/TestMonitorProvider.java 74 ●●●●● diff | view | raw | blame | history