Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327685 - Default Redirector is not used when using native EclipseLink queries
Summary: Default Redirector is not used when using native EclipseLink queries
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-13 12:31 EDT by Gordon Yorke CLA
Modified: 2022-06-09 10:23 EDT (History)
2 users (show)

See Also:


Attachments
Potential Patch (943 bytes, patch)
2010-10-14 16:30 EDT, Gordon Yorke CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gordon Yorke CLA 2010-10-13 12:31:14 EDT
When a ReadAllQuery is executed though a Session the descriptor is not set before the default redirectors are checked.  There is code to check for redirectors a second time but this is only if there is a predefined query stored on the QueryManager.

The solution is to checkDescriptor() on the Query prior to checking ofr redirectors.
Comment 1 Gordon Yorke CLA 2010-10-14 16:30:27 EDT
Created attachment 180911 [details]
Potential Patch

Patch causes the descriptor to be resolved on the query before checking for redirectors
Comment 2 Gordon Yorke CLA 2010-10-15 14:58:57 EDT
Simple patch checked in.
Reviewed by James Sutherland.
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:23:26 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink