Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-3052

Error returned when unknown matching rule is used in extensible match filter

    Details

    • Type: Bug
    • Status: Dev backlog
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.0.0, 3.0.0
    • Fix Version/s: None
    • Component/s: core server
    • Labels:
      None

      Description

      RFC 4511 4.5.1.7 says

      Servers MUST NOT return errors if attribute descriptions or matching rule ids are not recognized [...]

      However if you do this search with the unknown matching rule rugbyMatch:

      ldapsearch -h localhost -p 1389 -D "cn=Directory Manager" -w password -b dc=example,dc=com -s sub "(cn:rugbyMatch:=1)" 1.1
      

      The server will return:

      SEARCH operation failed
      Result Code:  80 (Other)
      Additional Information:  org.forgerock.opendj.ldap.schema.UnknownSchemaElementException: No matching rule with name or OID "rugbyMatch" exists in the schema
      

      This violates the above text from the RFC. The server should be returning no results with a return code of 0.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                matthew Matthew Swift
                Reporter:
                cjr Chris Ridd
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: