View Issue Details

IDProjectCategoryView StatusLast Update
0007823mantisbtchange logpublic2007-05-08 03:42
Reportertmqmtf Assigned Tozakman  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.1.0a1 
Fixed in Version1.1.0a3 
Summary0007823: APPLICATION ERROR #1100 Issue 0 not found in change_log page with access-level 'reporter'
Description

After sucessful login, the user with access-level 'reporter' navigates to the change_log-page. The page shows no solved bug, but only an Application-Error
"APPLICATION ERROR #1100 Issue 0 not found".

If I change the $g_limit_reporters to 'OFF', all the solved bugs are shown.
The change-log-page is also complete, if the access-level of the user is changed to 'viewer' or 'tester'.

Steps To Reproduce

a) in config_inc.php set the flag $g_limit_reporters = ON;
b) configure an user as 'reporter' for a project which has at least one solved bug
c) login and navigate to the change-log-page

TagsNo tags attached.
Attached Files
changelog_page.php.zip (11,822 bytes)
roadmap_page.php.diff (851 bytes)   
--- D:/xampp/xampp/htdocs/mantis/roadmap_page.php	Sat Dec 23 18:54:18 2006
+++ D:/xampp/xampp/htdocs/mantis_dev/roadmap_page.php	Thu Mar 15 19:23:19 2007
@@ -107,7 +107,7 @@
 
 			while ( $t_row = db_fetch_array( $t_result ) ) {
 				# hide private bugs if user doesn't have access to view them.
-				if ( !$t_can_view_private && ( $t_result->fields['view_state'] == VS_PRIVATE ) ) {
+				if ( !$t_can_view_private && ( $t_row['view_state'] == VS_PRIVATE ) ) {
 					continue;
 				}
 
@@ -116,7 +116,7 @@
 				# check limit_Reporter (Issue #4770)
 				# reporters can view just issues they reported
 				if ( ON === $t_limit_reporters && $t_user_access_level_is_reporter &&
-					 !bug_is_user_reporter( $t_result->fields['id'], $t_user_id )) {
+					 !bug_is_user_reporter( $t_row['id'], $t_user_id )) {
 					continue;
 				}
 
roadmap_page.php.diff (851 bytes)   
changelog_page.php.diff (855 bytes)   
--- D:/xampp/xampp/htdocs/mantis/changelog_page.php	Fri Apr 21 00:29:56 2006
+++ D:/xampp/xampp/htdocs/mantis_dev/changelog_page.php	Thu Mar 15 19:05:02 2007
@@ -104,7 +104,7 @@
 
 			while ( $t_row = db_fetch_array( $t_result ) ) {
 				# hide private bugs if user doesn't have access to view them.
-				if ( !$t_can_view_private && ( $t_result->fields['view_state'] == VS_PRIVATE ) ) {
+				if ( !$t_can_view_private && ( $t_row['view_state'] == VS_PRIVATE ) ) {
 					continue;
 				}
 
@@ -113,7 +113,7 @@
 				# check limit_Reporter (Issue #4770)
 				# reporters can view just issues they reported
 				if ( ON === $t_limit_reporters && $t_user_access_level_is_reporter &&
-					 !bug_is_user_reporter( $t_result->fields['id'], $t_user_id )) {
+					 !bug_is_user_reporter( $t_row['id'], $t_user_id )) {
 					continue;
 				}
 
changelog_page.php.diff (855 bytes)   

Activities

exk72

exk72

2007-03-15 03:25

reporter   ~0014187

do these patches solve the issue?

tmqmtf

tmqmtf

2007-03-16 12:22

reporter   ~0014195

I only modified the changelog_page.php. The roadmap_page.php does not exist in the release 1.1.0a1.
Yes, the issue is solved. Thanks!