[
https://issues.apache.org/jira/browse/OFBIZ-13072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mekika Leila closed OFBIZ-13072.
--------------------------------
Resolution: Fixed
> Issue when caching a query with a selectField
> ---------------------------------------------
>
> Key: OFBIZ-13072
> URL: https://issues.apache.org/jira/browse/OFBIZ-13072
> Project: OFBiz
> Issue Type: Bug
> Components: framework
> Affects Versions: Upcoming Branch
> Reporter: Mekika Leila
> Assignee: Mekika Leila
> Priority: Minor
>
> When a query with a field selection and a cache() option is done, the result
> is put in cache with the incomplete genericValue (I mean without all the
> fields).
> Then when an other query with the same condition and cache option is done,
> even whitout the field selection, the result returned is the incomplete
> version of the GenericValue that has been stored in cache.
> The code in the PR prevent from adding in cache an incomplete genericValue
> and filter the cached value when necessary
> *To test:*
> testCache has been added to entity-query-tests test case. It can be launched
> withÂ
> ./gradlew 'ofbiz -t component=entity'
> or
> ./gradlew 'ofbiz -t component=entity -t suitename=entitytests -t
> case=entity-query-tests'
--
This message was sent by Atlassian Jira
(v8.20.10#820010)