In-Portal Issue Tracker - In-Portal CMS
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Type: | Reproducibility: | Date Submitted: | Last Update: |
449 | [In-Portal CMS] Permissions | bug report | always | 2009-12-16 11:35 | 2010-01-11 22:01 |
|
|||||
Reporter: | alex | Platform: | |||
Assigned To: | alex | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 5.0.1 | ||
Product Build: | Resolution: | fixed | |||
ETA: | none | Fixed in Version: | 5.0.2-B1 | ||
Reference: | Google Groups http://groups.google.com/group/in-portal-bugs/browse_thread/thread/34323dc499e7b9fc | ||||
Change Log Message: | |||||
Estimate Points: | 0 | ||||
|
|||||
Summary: | 0000449: Category Permission Cache is calculated incorrectly on PHP5 | ||||
Description: |
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. |
||||
Steps To Reproduce: | |||||
Additional Information: | Tested on another project, but should be tasted on 5.0.2 as well. | ||||
Relationships | |||||
Attached Files: |
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 | |||||
Date Modified | Username | Field | Change | ||
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 | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|