You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Kiran Ayyagari (JIRA)" <ji...@apache.org> on 2014/11/29 14:13:12 UTC

[jira] [Resolved] (DIRSERVER-2030) Remove the casting in generateResponse() method of SearchRequestHandler

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

Kiran Ayyagari resolved DIRSERVER-2030.
---------------------------------------
    Resolution: Fixed

Committed here http://svn.apache.org/r1642430.

> 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)