Details
-
Improvement
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
2.0.0-M19
-
None
-
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.