[ 
https://issues.apache.org/jira/browse/OFBIZ-13072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17842866#comment-17842866
 ] 

ASF subversion and git services commented on OFBIZ-13072:
---------------------------------------------------------

Commit 0748e67e5eee689425bcb08f73024d659b7007a2 in ofbiz-framework's branch 
refs/heads/trunk from Mekika Leila
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=0748e67e5e ]

Fixed: Issue when caching a query with a selectField (OFBIZ-13072) (#787)

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.

This prevent from adding in cache an incomplete genericValue and filter
the cached value when necessary


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

Reply via email to