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 Advanced Details Jump to Notes ] Wiki ] View Simple ] Issue History ] Print ]
ID Category Type Reproducibility Date Submitted Last Update
0000880 [In-Portal CMS] Front End bug report always 2010-10-05 15:24 2010-11-30 12:48
Reporter phil View Status public Project Name In-Portal CMS
Assigned To alex Developer
Priority normal Resolution fixed Platform
Status closed   OS
  OS Version
ETA none Fixed in Version 5.1.1-B2 Product Version 5.1.1-B1
  Target Version 5.1.1 Product Build
Time EstimateNo estimate
Summary 0000880: Category-based permission check not working on Home Page
Description Tags "m_CheckPermission" and "c_HasPermission" doesn't work, when used on home page (index.tpl template).

This happens, because current category is detected as "0" on that template, however it's 1 (ID of "Content"/"Home" category). In 4.x versions of In-Portal it indeed was 0. I supposed not all places were properly adapted to such ID change.

I propose, to set current category id ("m_cat_id" variable) to actual ID of "Content"/"Home" category, when it's equals to "0".
Steps To Reproduce
Additional Information All places, that compare "m_cat_id" to "0" should be also checked and properly adapted.
Tags No tags attached.
Reference http://groups.google.com/group/in-portal-dev/browse_thread/thread/9fb2c6158ab20520
Change Log Message
Estimate Points 0
Attached Files patch file icon home_page_permission_checking_fails.patch [^] (12,063 bytes) 2010-10-05 16:18 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
User avatar (0002876)
alex (manager)
2010-10-05 16:19

To test you can place this code:

C_VIEW: [<inp2:m_CheckPermission permissions="CATEGORY.VIEW"/>]

M_CAT_ID: <inp2:m_Get name="m_cat_id"/>

C_ID: <inp2:c_Field name="CategoryId"/>

ST_ID: <inp2:st_Field name="CategoryId"/>


in front of <inp2:m_RenderElement name="content" default_element="cms_content"/> tag in "default_design.des.tpl" file, as Phil did to see if 1st line of output changes after applying patch and other lines won't change.

Also test this on some other pages (virtual, template) to see if nothing global was broken.
User avatar (0002884)
Dmitry (manager)
2010-10-13 23:46

Good one - tested good, please commit
User avatar (0002892)
alex (manager)
2010-10-19 03:57

Fix committed to 5.1.x branch. Commit Message:

Fixes 0000880: Category-based permission check not working on Home Page
User avatar (0003022)
Dmitry (manager)
2010-11-30 12:48

Closing released 5.1.1 task.

- Related Changesets
In-Portal CMS: 5.1.x r13987
Timestamp: 2010-10-19 03:57:53
Author: alex
Details ] Diff ]
Fixes 0000880: Category-based permission check not working on Home Page
mod - /in-portal/branches/5.1.x/core/install/install_toolkit.php Diff ] File ]
mod - /in-portal/branches/5.1.x/core/kernel/application.php Diff ] File ]
mod - /in-portal/branches/5.1.x/core/kernel/db/cat_event_handler.php Diff ] File ]
mod - /in-portal/branches/5.1.x/core/units/admin/admin_tag_processor.php Diff ] File ]
mod - /in-portal/branches/5.1.x/core/units/categories/categories_event_handler.php Diff ] File ]
mod - /in-portal/branches/5.1.x/core/units/categories/categories_tag_processor.php Diff ] File ]
mod - /in-portal/branches/5.1.x/core/units/content/content_eh.php Diff ] File ]
mod - /in-portal/branches/5.1.x/core/units/helpers/cat_dbitem_export_helper.php Diff ] File ]
mod - /in-portal/branches/5.1.x/core/units/helpers/category_helper.php Diff ] File ]
mod - /in-portal/branches/5.1.x/core/units/helpers/menu_helper.php Diff ] File ]
mod - /in-portal/branches/5.1.x/core/units/helpers/permissions_helper.php Diff ] File ]

- Issue History
Date Modified Username Field Change
2010-11-30 12:48 Dmitry Note Added: 0003022
2010-11-30 12:48 Dmitry Status resolved => closed
2010-10-19 03:57 alex Note Added: 0002892
2010-10-19 03:57 alex Status reviewed and tested => resolved
2010-10-19 03:57 alex Fixed in Version => 5.1.1-B2
2010-10-19 03:57 alex Resolution open => fixed
2010-10-19 03:57 alex Assigned To !COMMUNITY => alex
2010-10-19 03:57 alex Changeset attached 5.1.x r13987
2010-10-13 23:46 Dmitry Note Added: 0002884
2010-10-13 23:46 Dmitry Status needs testing => reviewed and tested
2010-10-05 16:21 alex Target Version Icebox => 5.1.1
2010-10-05 16:20 alex Reporter alex => phil
2010-10-05 16:19 alex Note Added: 0002876
2010-10-05 16:18 alex Assigned To => !COMMUNITY
2010-10-05 16:18 alex Developer => alex
2010-10-05 16:18 alex Status active => needs testing
2010-10-05 16:18 alex File Added: home_page_permission_checking_fails.patch
2010-10-05 15:24 alex New Issue
2010-10-05 15:24 alex Reference => http://groups.google.com/group/in-portal-dev/browse_thread/thread/9fb2c6158ab20520



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

Powered by Mantis Bugtracker