View Issue Details

IDProjectCategoryView StatusLast Update
0011230mantisbtapi soappublic2013-04-06 08:16
Reportercoyttl Assigned Torombert  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version1.1.8 
Target Version1.2.12Fixed in Version1.2.12 
Summary0011230: High-ascii characters in fields will cause invalidity in XML.
Description

High-ascii characters in a description are either not being escaped or not being enclosed in a CDATA[] block, causing certain XML parsers to error out when pulling data via MantisConnect.

For example, issues 0011045 and 0007882, when being pulled via MantisConnect in a .NET architecture will throw the following SOAP error:

      There is an error in XML document (1326, 6).
      '', hexadecimal value 0x10, is an invalid character. Line 1326, position 6.

Apologies if this is the wrong database for this, unsure if MantisConnect has a different project/database to report to.

Steps To Reproduce

Using VB.NET example:

Dim mnClinet as new MantisConnect
' ... any client setup.
mnClient.mc_project_get_issues(UserID, UserPasswd, "1", "3", "50")

The 'get_issues' will throw the SOAPException, if connecting to MantisBt.org, using a project id of "1", page 0000003, with 50 issues / page. (Currently. As new issues are added, the page may be bumped up to 4.)

TagsNo tags attached.

Relationships

related to 0014744 closeddregad mantisbt Unicode characters in text field prevent bug display 
related to 0015721 closedgrangeway mantisbt Functionality to consider porting to master-2.0.x 
has duplicate 0014210 closedvboctor MantisTouch Looks like we go not XML document error, issues list, Project ID: 0, Filter ID: 0 

Activities

coyttl

coyttl

2009-11-30 14:35

reporter   ~0023826

Of course, by adding this issue with the invalid character above, pulling page 1 will cause the error as well.

grangeway

grangeway

2013-04-05 17:56

reporter   ~0036215

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

Related Changesets

MantisBT: master-1.2.x fa811c1d

2012-11-01 16:07

rombert


Details Diff
Fixes 0011230: High-ascii characters in fields will cause invalidity in
XML.

Code from commit 2b5d66217bd4ecf5e7271f1a4b2b339d7681e91c is used to
clean invalid characters.
Affected Issues
0011230
mod - api/soap/mc_api.php Diff File
mod - api/soap/mc_issue_api.php Diff File

MantisBT: master 745a0bf0

2012-11-01 16:07

rombert


Details Diff
Fixes 0011230: High-ascii characters in fields will cause invalidity in
XML.

Code from commit 2b5d66217bd4ecf5e7271f1a4b2b339d7681e91c is used to
clean invalid characters.
Affected Issues
0011230
mod - api/soap/mc_api.php Diff File
mod - api/soap/mc_issue_api.php Diff File

MantisBT: master-1.2.x 559205e2

2012-11-01 17:14

rombert


Details Diff
Fixes 0011230: High-ascii characters in fields will cause invalidity in
XML.

Also apply fix to data returned from the filter and project api.
Affected Issues
0011230
mod - api/soap/mc_issue_api.php Diff File

MantisBT: master 5d80a1f5

2012-11-01 17:14

rombert


Details Diff
Fixes 0011230: High-ascii characters in fields will cause invalidity in
XML.

Also apply fix to data returned from the filter and project api.
Affected Issues
0011230
mod - api/soap/mc_issue_api.php Diff File