[WEBCLIENT-3] web client query returns invalid XML if query specifies a concept containing the ampersand character (&) Created: 19/Aug/09  Updated: 05/Jun/14  Resolved: 22/May/14

Status: Closed
Project: i2b2 Web Client
Component/s: Web Client Framework
Affects Version/s: 1.3.00
Fix Version/s: 1.6.05

Type: Bug Priority: Major
Reporter: D Ahn Assignee: Mike Mendis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment: RHEL5

Affects View/s:
Query Tool
Participant/s:

 Description   
If a concept uses the ampersand character (&) in its C_FULLNAME and/or C_DIMCODE (such as "\test\Procedures\CPT\Emergoing Technology, Services & Procedures\"), then any query that directly selects that concept fails due to "An error has occured while trying to run the query. The cell's message could not be interpreted as valid XML." The same query initiated from the workbench client works as expected.

A cursory investigation shows that the web client does not send the Query to the i2b2 server, and the cause appears to be that the ampersand character "&" may not be properly encoded into "&" during XML creation, thereby creating an invalid XML string. Or, perhaps a second layer of encapsulation is required to properly represent the ampersand character. I suspect that this error may also occur if other fields (C_NAME, C_COMMENT, etc) contain the ampersand character, but this has not been verified.

 Comments   
Comment by D Ahn [ 22/Oct/09 ]
It seems that the less than character (<) is also causing the same problem.
Comment by Janice Donahoe [ 22/May/14 ]
fixed
Generated at Wed Jan 22 04:57:13 UTC 2025 using Jira 8.20.11#820011-sha1:0629dd8d260e3954ece49053e565d01dabe11609.