Kiran Ayyagari created DIRSERVER-2030:
-----------------------------------------

             Summary: Remove the casting in generateResponse() method of 
SearchRequestHandler
                 Key: DIRSERVER-2030
                 URL: https://issues.apache.org/jira/browse/DIRSERVER-2030
             Project: Directory ApacheDS
          Issue Type: Improvement
    Affects Versions: 2.0.0-M19
            Reporter: Kiran Ayyagari
            Assignee: Kiran Ayyagari
            Priority: Blocker
             Fix For: 2.0.0-M20


Currently to check if an entry is a referral the below cast is done.
{code}Attribute ref = ( ( ClonedServerEntry ) entry ).getOriginalEntry().get( 
SchemaConstants.REF_AT );{code}

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.





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to