View Issue Details

IDProjectCategoryView StatusLast Update
0014721mantisbtprintingpublic2014-12-08 02:08
Reporterphyllisl Assigned Todregad  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
OSSLESOS VersionSLES11_64bit_SP2 
Product Version1.3.0dev 
Target Version1.3.0-beta.1 
Summary0014721: Error page when generate summary in HTML format
Description

This is actually from testing the nightly build 1.3 Mantis. After finishing the installation and created the first ever bug report(logged in as administrator), if user clicks summary->print reports->Internet Explore icon, it gives a page with following error:

XML Parsing Error: XML or text declaration not at start of entity
Location: http://10.96.99.121/mantisbt/print_all_bug_page_word.php?search=&sort=&dir=DESC&type_page=html&export=-1&show_flag=0
Line Number 5, Column 1:<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" ><head>
^

Steps To Reproduce

click summary->print reports->Internet Explore icon

Additional Information

Mantis Version:
mantisbt-1.3.0dev-master-2c916dd.tar.gz 19-Sep-2012 06:34 2.5M
from http://www.mantisbt.org/builds/

The installation was done by following the guide online at:
http://www.mantisbt.org/manual/manual.installation.php

Also, attached is the config_inc.php of this server. The page content is copy pasted from the installation result without modification.

TagsNo tags attached.
Attached Files
config_inc.php (9,744 bytes)   
<?php
        $g_hostname = 'localhost';
        $g_db_type = 'mysql';
        $g_database_name = 'bugtracker';
        $g_db_username = 'root';
        $g_db_password = 'mAntis';

        $g_crypto_master_salt = 't3rJRrII0IjPfo+66SgQpo2YMZ/IOHpNUnSCpftNa7w=';

~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                                                                                                                                                                                       
~                                 
config_inc.php (9,744 bytes)   

Relationships

related to 0014744 closeddregad Unicode characters in text field prevent bug display 
related to 0015721 closedgrangeway Functionality to consider porting to master-2.0.x 
related to 0014748 closeddregad XML Parse Error when having jpg image as attachment in summary report in HTML 
related to 0014811 closeddregad Summary page doesn't generate properly because of special characters 

Activities

phyllisl

phyllisl

2012-09-21 12:31

reporter   ~0032900

It now gives a new error after updating the file.

dregad

dregad

2012-09-21 12:44

developer   ~0032902

I cannot replicate this.
Are you sure you applied the patch correctly ? print_all_bug_page.php does not use a parameter called 'export'. If you're not sure how to apply patches, then wait until tomorrow to download the next nightly build.

phyllisl

phyllisl

2012-09-21 14:10

reporter   ~0032903

Sorry to confuse you. Actually I made a mistake while applying the patch. Now the error should be:
XML Parsing Error: not well-formed
Location: http://10.96.99.122/mantisbt/print_all_bug_page_word.php?search=&sort=&dir=DESC&type_page=html&export=-1&show_flag=0
Line Number 205739, Column 122:Apr 15 07:50:37 phx-dr-cn3 ADE: |16082084 30719 000003 THRD TMSM 2009-04-15T07:50:37.054811| NOTICE 0674 THRD: ˆ¢¾·ˆ¢¾·

-------------------------------------------------------------------------------------------------------------------------^

dregad

dregad

2012-09-21 18:41

developer   ~0032907

Looks like the error is caused by data in one of the issues being exported, causing incorrect html to be generated. Would you be able to

  • isolate the one issue being exported at line 205739
  • generate the html page
  • upload the resulting file here (use browser's view source to export it)
phyllisl

phyllisl

2012-09-21 20:45

reporter   ~0032919

I tried to remove the lines that caused the problems from source file, and the report was finally printed, but apparently, all the special characters that should be printed out just like other text (see:Should Successfully print out like this) are causing trouble in 1.3

dregad

dregad

2012-09-23 11:59

developer   ~0032921

That's not what I asked.

I'm looking for a sample of data (the special chars you mention) that breaks so I can reproduce the problem locally and hopefully fix it. Your screenshot does not help.

phyllisl

phyllisl

2012-09-25 21:23

reporter   ~0032939

Last edited: 2012-09-25 21:24

Oct 31 04:33:51 sn2-b-1 ADE: |12020111 28657 000003 THRD TMSM 2008-10-31T04:33:51.559966| NOTICE 0674 THRD: xÆ·xÆ·
Oct 31 04:33:51 sn2-b-1 ADE: |12020111 28657 000003 THRD TMSM 2008-10-31T04:33:51.663965| NOTICE 0763 THRD: Backtrace for TID 3006884768, SysPID 24992
Oct 31 04:33:51 sn2-b-1 ADE: |12020111 28657 000003 THRD TMSM 2008-10-31T04:33:51.663997| NOTICE 0674 THRD: ø@¯ø@

Sorry about that, would this help?

dregad

dregad

2012-09-26 04:47

developer   ~0032943

OK, I can confirm there's an issue. I fact, in 1.3 I'm not even able to add a note with the data you provided in 0014721:0032939.

I have opened a new issue 0014744 to track this. Please follow-up there.

dregad

dregad

2012-10-11 08:43

developer   ~0033160

Additional issue identified by atrol (see 0014811:0033158).

grangeway

grangeway

2013-04-05 17:57

reporter   ~0036225

Marking as 'acknowledged' not resolved/closed to track that change gets ported to master-2.0.x branch

Related Changesets

MantisBT: master 8ae62f36

2012-09-21 00:03

dregad


Details Diff
Fix 0014721: XML Parsing Error in print_all_bug_page_word.php

Revised code so that generated page complies with xhtml 1.0 strict DTD.
Affected Issues
0014721
mod - print_all_bug_page_word.php Diff File

MantisBT: master 63548c7a

2012-09-21 00:03

dregad


Details Diff
Additional XML Parsing Error in print_all_bug_page_word.php

Error is triggered when Custom Fields contain html special characters.

Fix 0014721
Affected Issues
0014721
mod - print_all_bug_page_word.php Diff File