You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Mekika Leila (Jira)" <ji...@apache.org> on 2024/05/02 07:19:00 UTC

[jira] [Commented] (OFBIZ-13072) Issue when caching a query with a selectField

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

Mekika Leila commented on OFBIZ-13072:
--------------------------------------

Thanks for the review Jacques !

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