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

coulbeck
18.13.2006 c96b628aff2a230ed19a050bb7ca323149b1469b
refs
author coulbeck <coulbeck@localhost>
Wednesday, October 18, 2006 19:13 +0200
committer coulbeck <coulbeck@localhost>
Wednesday, October 18, 2006 19:13 +0200
commitc96b628aff2a230ed19a050bb7ca323149b1469b
tree 1bc743938fed2fc645373660ef32f0d34d4e1b50 tree | zip | gz
parent 60c135a51fa765acce882922d6f32e8bce6f2b0f 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
opendj-sdk/opends/src/server/org/opends/server/backends/MonitorBackend.java 5 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/core/DirectoryServer.java 34 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/monitors/InternalSearchMonitorTestCase.java 53 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/monitors/TestMonitorProvider.java 74 ●●●●● diff | view | raw | blame | history