directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kiran Ayyagari (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DIRSERVER-2030) Remove the casting in generateResponse() method of SearchRequestHandler
Date Sat, 29 Nov 2014 10:58:12 GMT

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

Mime
View raw message