In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
449 [In-Portal CMS] Permissions bug report always 2009-12-16 11:35 2010-01-11 22:01
alex  
alex  
normal  
closed 5.0.1  
fixed  
 
none 5.0.2-B1  
Google Groups http://groups.google.com/group/in-portal-bugs/browse_thread/thread/34323dc499e7b9fc
0
0000449: Category Permission Cache is calculated incorrectly on PHP5
Noticed that allow/deny category permissions are used for categories,
then they are incorrectly inherited (at least CATEGORY.VIEW permission). To
inherit permission kPermCacheUpdater class assigns permission object without
reference to copy it. This approach works in PHP4, because "=" is used
instead of "=&". PHP5 always passes objects by reference even if "=&"
operator is not used. This way we got random inheritance logic.

To solve this in PHP5 "clone" operator is used, but since this should work
in PHP4 too, then serialize/unserialize is used.
Tested on another project, but should be tasted on 5.0.2 as well.
patch wrong_category_permissions_on_php5.patch (831) 2009-12-16 11:35
http://tracker.in-portal.org/file_download.php?file_id=162&type=bug
Issue History
2010-01-11 22:01 Dmitry Note Added: 0001308
2010-01-11 22:01 Dmitry Status resolved => closed
2009-12-20 07:00 alex Note Added: 0001188
2009-12-20 07:00 alex Status reviewed and tested => resolved
2009-12-20 07:00 alex Fixed in Version => 5.0.2-B1
2009-12-20 07:00 alex Resolution open => fixed
2009-12-20 07:00 alex Assigned To !COMMUNITY => alex
2009-12-20 07:00 alex Changeset attached 5.0.x r12958
2009-12-20 01:38 Dmitry Note Added: 0001171
2009-12-20 01:38 Dmitry Status needs testing => reviewed and tested
2009-12-16 11:35 Dmitry Reporter Dmitry => alex
2009-12-16 11:35 Dmitry Status needs work => needs testing
2009-12-16 11:35 Dmitry New Issue
2009-12-16 11:35 Dmitry Status active => needs work
2009-12-16 11:35 Dmitry Assigned To => !COMMUNITY
2009-12-16 11:35 Dmitry File Added: wrong_category_permissions_on_php5.patch
2009-12-16 11:35 Dmitry Reference => Google Groups http://groups.google.com/group/in-portal-bugs/browse_thread/thread/34323dc499e7b9fc

Notes
(0001171)
Dmitry   
2009-12-20 01:38   
Tested OK, please commit
(0001188)
alex   
2009-12-20 07:00   
Fix committed to 5.0.x branch. Commit Message:

Fixes 0000449: Category Permission Cache is calculated incorrectly on PHP5
(0001308)
Dmitry   
2010-01-11 22:01   
Closing completed tasks.