View Issue Details

IDProjectCategoryView StatusLast Update
0013304mantisbtbugtrackerpublic2014-12-08 02:07
Reporterdregad Assigned Todregad  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
PlatformFirefox 
Product Version1.3.0dev 
Target Version1.3.0-beta.1 
Summary0013304: Error handler causes XML Parsing Errors
Description

When a user error is triggered in 1.3.x, instead of the normal error page, Firefox brings up an error page due to malformed XHTML (see additional information below)

Steps To Reproduce

$g_display_errors = array( E_USER_ERROR => 'halt' );

Setup your system or perform some action so that an error is triggered, e.g. LDAP server down, incorrect config...

Additional Information

Example 1:
<pre>XML Parsing Error: not well-formed
Location: http://localhost/mantis/dev/login_page.php
Line Number 1, Column 434:<div id="error-msg"><div class="error-type">APPLICATION ERROR 0001401</div><div class="error-description">LDAP Server Connection Failed.</div><div class="error-info">Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.</div></div></div>
------------ ... ------------^
</pre>(note: the ^ is on the last div tag)

Example 2:
<pre>
XML Parsing Error: junk after document element
Location: http://localhost/mantis/dev/my_view_page.php
Line Number 1, Column 102:<div class="error-inline">SYSTEM NOTICE: date_default_timezone_set(): Timezone ID '' is invalid</div><?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&quot;>&lt;html xmlns="http://www.w3.org/1999/xhtml&quot; lang="en" xml:lang="en" ><head>
-----------------------------------------------------------------------------------------------------^
</pre>(note: the ^ is on the xml tag)

TagsNo tags attached.

Relationships

related to 0014759 closeddregad Access Denied Page Has XML Parse Error 
child of 0014088 closedvboctor Mantis 1.3.0 blocking issues 

Activities

dregad

dregad

2012-05-16 05:49

developer   ~0031844

Work-in-progress attempt to fix this
https://github.com/dregad/mantisbt/tree/fix-13304-xml-errors

Feedback appreciated

atrol

atrol

2013-04-27 18:34

developer   ~0036705

Removed assignment. dhx will not contribute to this issue in near future.

vboctor

vboctor

2013-10-01 00:50

manager   ~0038161

Is this related to 0014759 ? I was not able to reproduce the issue reported in 0014759 -- @dregad, did you fix these issues?

atrol

atrol

2013-10-01 02:34

developer   ~0038163

vboctor, I assume you are using dregad's 13x branch?
This commit would explain the behavior
https://github.com/dregad/mantisbt/commit/031735979f84291927b645944a51cd7460040b90

dregad

dregad

2013-10-01 03:19

developer   ~0038164

dregad, did you fix these issues?

Yes, as atrol said.

Related Changesets

MantisBT: master ec574f8c

2013-06-07 01:21

dregad


Details Diff
Revert "Issue 0012545: Enforce XHTML strict output for all pages served"

This reverts commit 4fc1d8b8290872e660c6d9a179c4c2209adf7e26.

Fixes 0013304, 0014759, 0015446

Conflicts:

core/http_api.php
Affected Issues
0012545, 0013304, 0014759, 0015446
mod - core/html_api.php Diff File
mod - core/http_api.php Diff File