View Issue Details

IDProjectCategoryView StatusLast Update
0024821mantisbtbugtrackerpublic2019-02-12 18:21
ReporterjweberhoferAssigned Tocproensa 
Status assignedResolutionopen 
Product Version2.17.1 
Target VersionFixed in Version 
Summary0024821: Wrong caching in version API

While searching solutions for 0017145 I was reviewing the version_api.php -> version_get_all_rows() function and found a potential issue:

The function can be invoked with filters for $p_released and $p_obsolete as well as an additional query $p_inherit. At the first run everything works fine because data are retrieved via a database query. This result is going to be cached.

Subsequent calls don't re-query the database but will re-use the former result. As this is potentially pre-filtered, the cached result-list will potentially contain not all results and therefore return wrong lists.

I could refactor that, please tell me if you are interested in...

TagsNo tags attached.


related to 0017145 feedback Need to show obsolete versions in Change Log. 
related to 0022100 assignedcproensa Take care of released/obsolete flag when accessing version_cache_array_rows() cache 




2018-10-04 03:53

developer   ~0060734


Thanks for your analysis and bug report. Your contribution would be appreciated, please feel free to submit a pull request on GitHub.


Issue History

Date Modified Username Field Change
2018-10-03 09:57 jweberhofer New Issue
2018-10-04 03:51 dregad Relationship added related to 0017145
2018-10-04 03:53 dregad Status new => acknowledged
2018-10-04 03:53 dregad Note Added: 0060734
2019-02-12 18:02 cproensa Assigned To => cproensa
2019-02-12 18:02 cproensa Status acknowledged => assigned
2019-02-12 18:21 cproensa Relationship added related to 0022100