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

Remove the casting in generateResponse() method of SearchRequestHandler

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.0.0-M19
    • 2.0.0-M20
    • None
    • None

    Description

      Currently to check if an entry is a referral the below cast is done.

      Attribute ref = ( ( ClonedServerEntry ) entry ).getOriginalEntry().get( SchemaConstants.REF_AT );

      But this casting fails when SortControl is used cause SortedEntryCursor returns DefaultEntry objects (they contain the attributes of a filtered ClonedEntry).

      OTOH, this casting is not needed to check the referral nature of an entry.

      Attachments

        Activity

          People

            akiran Kiran Ayyagari
            akiran Kiran Ayyagari
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: