In-Portal Issue Tracker

Welcome to the In-Portal Open Source CMS Issue Tracker! This is a central management / tracking tool for all types of tasks / issues / bugs for the In-Portal Project. Before reporting any issues, please make sure to read the Guide into Issue Tracker and How to Properly Test and Report Bugs!

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

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
User avatar (0000515)
alex (manager)
2009-09-23 12:21

This already done and tested on other project and awaiting to be commited.
User avatar (0000591)
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
User avatar (0001392)
Dmitry (manager)
2010-01-11 22:05

Closing completed tasks.

- Related Changesets
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 ]

- Issue History
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



Web Development by Intechnic
In-Portal Open Source CMS
In-Portal Open Source CMS
Copyright © 2000 - 2009 MantisBT Group

Powered by Mantis Bugtracker