In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
876 [In-Portal CMS] Front End bug report always 2010-09-30 13:32 2010-11-30 12:48
alex  
alex  
normal  
closed 5.1.0  
fixed  
 
none 5.1.1-B2  
http://groups.google.com/group/in-portal-bugs/browse_thread/thread/8889e7537fdd9627
0
0000876: Tag "HasPermission" can result in sql fatal error in some cases
Tag "HasPermission" (only for category items) is used to check if current user has given permission. Usually it's used from inside of <inp2:m_if .../> tag like this:

<inp2:m_if check="n_HasPermission" permissions="NEWS.ADD|NEWS.ADD.PENDING">
show, when have permission
</inp2:m_if>

In "advanced" theme it's used from within <inp2:m_DefineElement .../> tag in lists and on category item details page.

However, when such tag is used after items were already printed, then it produces database query leading to fatal error.
patch incomplete_isloaded_reporting_for_lists.patch (288) 2010-09-30 13:32
http://tracker.in-portal.org/file_download.php?file_id=793&type=bug
Issue History
2010-11-30 12:48 Dmitry Note Added: 0003015
2010-11-30 12:48 Dmitry Status resolved => closed
2010-10-19 04:10 alex Note Added: 0002899
2010-10-19 04:10 alex Status reviewed and tested => resolved
2010-10-19 04:10 alex Fixed in Version => 5.1.1-B2
2010-10-19 04:10 alex Resolution open => fixed
2010-10-19 04:10 alex Assigned To !COMMUNITY => alex
2010-10-19 04:10 alex Changeset attached 5.1.x r13994
2010-10-03 22:38 Dmitry Note Added: 0002875
2010-10-03 22:38 Dmitry Status needs testing => reviewed and tested
2010-09-30 13:34 alex Assigned To => !COMMUNITY
2010-09-30 13:34 alex Developer => alex
2010-09-30 13:34 alex Status active => needs testing
2010-09-30 13:33 alex Reference => http://groups.google.com/group/in-portal-bugs/browse_thread/thread/8889e7537fdd9627
2010-09-30 13:32 alex New Issue
2010-09-30 13:32 alex File Added: incomplete_isloaded_reporting_for_lists.patch

Notes
(0002875)
Dmitry   
2010-10-03 22:38   
Tested, please commit into 5.1.1-Beta2
(0002899)
alex   
2010-10-19 04:10   
Fix committed to 5.1.x branch. Commit Message:

Fixes 0000876: Tag "HasPermission" can result in sql fatal error in some cases
(0003015)
Dmitry   
2010-11-30 12:48   
Closing released 5.1.1 task.