View Issue Details

IDProjectCategoryView StatusLast Update
0010838mantisbtadministrationpublic2010-02-22 14:34
Reporterpeixedragao Assigned Todhx  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version1.2.0rc1 
Target Version1.2.0Fixed in Version1.2.0 
Summary0010838: APPLICATION WARNING #300: String 'configuration_corrupted' not found.
Description

After changing workflow transitions, a get the folowing entry on the configuration report:

Username: All users
Project Name: All projects
Configuration option: status_enum_workflow
Type: complex
Value: APPLICATION WARNING #300: String 'configuration_corrupted' not found.

(Note: Above texts actually show all in portuguese as I'm using portuguese translation)

Steps To Reproduce

1) login as Admin
2) select 'all projects' on project selection box
3) go to configuratio, select 'Manage configuration' than 'workflow transitions'
4) change workflow transitions and apply
5) go to configuration report and check entry 'status_enum_workflow'

Tagspatch
Attached Files
adm_config_report.patch (413 bytes)   
--- adm_config_report.php.orig	Thu Sep 17 01:46:04 2009
+++ adm_config_report.php	Thu Sep 17 01:46:13 2009
@@ -57,7 +57,7 @@
 				echo string_nl2br( string_html_specialchars( "'$t_value'" ) );
 				return;
 			case CONFIG_TYPE_COMPLEX:
-				$t_value = @unserialize( utf8_decode( $p_value ) );
+				$t_value = @unserialize( $p_value );
 				if ( $t_value === false ) {
 					$t_corrupted = true;
 				}
adm_config_report.patch (413 bytes)   

Activities

alainp

alainp

2009-09-01 05:27

reporter   ~0022840

Last edited: 2009-09-01 05:28

+1 here

exact same issue on v1.2.0rc1

Danez

Danez

2009-09-16 19:38

reporter   ~0022945

Last edited: 2009-09-16 19:49

same here

v1.2.0rc1 german

I looked into it and it seems only to happen if there are utf8 encoded strings in the serialized string.
All values are stored as utf8 in database, and the adm_config_report.php-Page still converts the strings to utf8 again, although they are already utf8.

I attached a simple patch that fixes this.

Danez

Danez

2009-09-27 10:30

reporter   ~0023035

Last edited: 2009-09-27 10:35

Fixed there:

http://git.mantisforge.org/w/mantisbt/dtschinder.git?a=commit;h=17ffa82df1cb04ee9c774f2aff919b32ff29b3db

dhx

dhx

2009-10-27 07:41

reporter   ~0023404

Oops I didn't see this bug in amongst all the others.

Thanks for fixing it Daniel, I've committed your patch to 1.2.x and 1.3.x :)

Related Changesets

MantisBT: master-1.2.x 5b23468d

2009-09-27 10:33

Danez

Committer: dhx


Details Diff
Fix 0010838: APPLICATION WARNING #300: String 'configuration_corrupted' not found.

Database connection seems to be alread in utf8 so there is no need to convert the read value from database to utf8.
Added the missing english localization.

Signed-off-by: Daniel Tschinder <code@tschinder.de>
Signed-off-by: David Hicks <hickseydr@optusnet.com.au>
Affected Issues
0010838
mod - adm_config_report.php Diff File
mod - lang/strings_english.txt Diff File

MantisBT: master b165230d

2009-09-27 10:33

Danez

Committer: dhx


Details Diff
Fix 0010838: APPLICATION WARNING #300: String 'configuration_corrupted' not found.

Database connection seems to be alread in utf8 so there is no need to convert the read value from database to utf8.
Added the missing english localization.

Signed-off-by: Daniel Tschinder <code@tschinder.de>
Signed-off-by: David Hicks <hickseydr@optusnet.com.au>
Affected Issues
0010838
mod - adm_config_report.php Diff File
mod - lang/strings_english.txt Diff File