Transformer.transformQuery() does not preserve sortBy filter

Description

The method uses the original datastore's QueryCapabilities object to check whether sorting is supported, but the check is done against the wrong SortBy filter (i.e. the one referring to the renamed properties), which results in the transformed query's getSortBy() method always returning null.

Environment

None

Activity

Stefano Costa 
December 18, 2015 at 8:56 AM

Fixed on master, backported to 14.x and 13.x.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created December 17, 2015 at 10:24 PM
Updated December 21, 2015 at 1:36 PM
Resolved December 18, 2015 at 8:56 AM