Anonymous | Login | Signup for a new account | 2023-06-03 02:33 CDT | ![]() |
Main | My View | View Issues | Change Log | Roadmap | Docs | Wiki | Repositories |
Viewing Issue Simple Details [ Jump to Notes ] [ Wiki ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||
ID | Category | Type | Reproducibility | Date Submitted | Last Update | ||
0000241 | [In-Portal CMS] Permissions | bug report | always | 2009-08-24 07:28 | 2010-01-11 22:05 | ||
Reporter | alex | View Status | public | Project Name | In-Portal CMS | ||
Assigned To | alex | Developer | |||||
Priority | critical | Resolution | fixed | Fixed in Version | 5.0.2 | ||
Status | closed | Product Version | 5.0.0 | Target Version | 5.0.2 | ||
Time Estimate | 1 hours total (1 hours remaining) | ||||||
Summary | 0000241: Fatal error, when trying to get event section (for permission checking) in SetCustomQuery method | ||||||
Description |
When you try to call given code inside "kDBEventHandler::SetCustomQuery" method, then you get fatal error about unknown prefix. $perm_section = $event->getSection(); $allowed = $this->Application->CheckPermission($perm_section . '.advanced:permission_name'); ----- There are no places in default installation when such error happens, only in customizations. |
||||||
Additional Information |
This all happens, because "top_prefix" event parameter is not set for item/list build events. In normal cases it is only set for main event (which name is given in user's request). You always can hardcode section name and not to get it from event, but in case if typing error occurs, then such case will be hard to track, because no visual errors occur. |
||||||
Tags | No tags attached. | ||||||
Reference | |||||||
Change Log Message | |||||||
Estimate Points | 0 | ||||||
Attached Files | |||||||
|
![]() |
|
![]() |
|
![]() alex (manager) 2009-09-23 12:21 |
This already done and tested on other project and awaiting to be commited. |
![]() alex (manager) 2009-09-29 15:24 |
Fix committed to 5.0.x branch. Commit Message: Fixes 0000241: Fatal error, when trying to get event section (for permission checking) in SetCustomQuery method |
![]() Dmitry (manager) 2010-01-11 22:05 |
Closing completed tasks. |
![]() |
|||
In-Portal CMS: 5.0.x r12642 Timestamp: 2009-09-29 15:24:41 Author: alex [ Details ] [ Diff ] |
Fixes 0000241: Fatal error, when trying to get event section (for permission checking) in SetCustomQuery method | ||
mod - /in-portal/branches/5.0.x/core/kernel/db/db_event_handler.php | [ Diff ] [ File ] | ||
![]() |
|||
Date Modified | Username | Field | Change |
2010-01-11 22:05 | Dmitry | Note Added: 0001392 | |
2010-01-11 22:05 | Dmitry | Status | resolved => closed |
2009-10-03 07:23 | administrator | Priority | normal => critical |
2009-10-03 07:23 | administrator | Type | @70@ => bug report |
2009-09-29 15:25 | alex | Patch Status | => Not Used |
2009-09-29 15:25 | alex | Fixed in Version | => 5.0.2 |
2009-09-29 15:24 | alex | Changeset attached | 5.0.x r12642 |
2009-09-29 15:24 | alex | Note Added: 0000591 | |
2009-09-29 15:24 | alex | Status | active => resolved |
2009-09-29 15:24 | alex | Resolution | open => fixed |
2009-09-29 15:24 | alex | Assigned To | => alex |
2009-09-23 12:21 | alex | Time Estimate Added | 1 |
2009-09-23 12:21 | alex | Note Added: 0000515 | |
2009-08-24 15:26 | Dmitry | Target Version | => 5.0.2 |
2009-08-24 07:28 | alex | New Issue |
Main | My View | View Issues | Change Log | Roadmap | Docs | Wiki | Repositories |
Web Development by Intechnic![]() In-Portal Open Source CMS |