Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-836

Requesting an unknown attribute in a search operation causes an error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.0.1
    • 1.0.1
    • None
    • None
    • * ApacheDS 1.5.0 (SNAPSHOT)
      * Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
      * Windows XP Professional SP2

    Description

      If someone tries to fetch an unknown attribute within a search operation, it causes an error. The expected behaviour is that the server ignores the unknown attribute. Here is a command line example:

      $ ldapsearch -h localhost -p 10389 -D "uid=admin,ou=system" -w ****** -b "dc=example,dc=com" -s base "(objectClass=*)" dc
      version: 1
      dn: dc=example,dc=com
      dc: example
      $ ldapsearch -h localhost -p 10389 -D "uid=admin,ou=system" -w ****** -b "dc=example,dc=com" -s base "(objectClass=*)" dc unknown
      ldap_search: Alias dereferencing problem
      ldap_search: additional info: failed on search operation: OID for name 'unknown' was not found within the OID registry
      $ ldapsearch -h localhost -p 10389 -D "uid=admin,ou=system" -w *****-b "dc=example,dc=com" -s base "(objectClass=)" dc;unknownOption
      ldap_search: Alias dereferencing problem
      ldap_search: additional info: failed on search operation: OID for name 'dc;unknownOption' was not found within the OID registry
      $

      I'll attach a JUnit test which demonstrates the problem with the help of JNDI.

      Attachments

        Activity

          People

            Unassigned Unassigned
            szoerner Stefan Zoerner
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: