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

david_page
03.15.2007 a197c76352e378db4c83e8b941b4c71371601c01
refs
author david_page <david_page@localhost>
Thursday, May 3, 2007 05:15 +0200
committer david_page <david_page@localhost>
Thursday, May 3, 2007 05:15 +0200
commita197c76352e378db4c83e8b941b4c71371601c01
tree 6acb887cd77cca6a8d8172e27392955eccf9c364 tree | zip | gz
parent 8c8912c4e085b6fc3b0549242d789e5a30c1b5fc view | diff
Issue [1024] Invalid filters are not detected by ldapsearch

This change addresses a specific case of the problem identified in the issue. Specifically, a test was added to detect and reject the specific case of apostrophes (single-quotes) enclosing an LDAP filter, which occurs when ldapsearch is invoked on a Microsoft Windows system and the search filter has mistakenly been enclosed by apostrophes instead of quotation marks.

Issue 1565 has been opened to address the more general question of what constitutes a valid search filter, including the characters allowed in an attribute type.

Thanks to Andy Coulbeck for help analyzing the problem and designing a solution, and David Ely for reviewing the proposed change.
2 files modified
44 ■■■■ changed files
opends/src/server/org/opends/server/messages/ProtocolMessages.java 32 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/protocols/ldap/LDAPFilter.java 12 ●●●●● diff | view | raw | blame | history