[ 
https://issues.apache.org/jira/browse/DIRSERVER-2030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kiran Ayyagari updated DIRSERVER-2030:
--------------------------------------
    Description: 
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.



  was:
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.




> 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