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

Remove the casting in generateResponse() method of SearchRequestHandler

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-M19
    • Fix Version/s: 2.0.0-M20
    • Component/s: None
    • Labels:
      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.

        Activity

        Hide
        akiran Kiran Ayyagari added a comment -
        Show
        akiran Kiran Ayyagari added a comment - Committed here http://svn.apache.org/r1642430 .

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development