HTML tags in any attribute causes the TIBCO Collaborative Information Manager Web service (Query) to return a SOAP fault.

HTML tags in any attribute causes the TIBCO Collaborative Information Manager Web service (Query) to return a SOAP fault.

book

Article ID: KB0088762

calendar_today

Updated On:

Products Versions
TIBCO Collaborative Information Manager -
Not Applicable -

Description

Resolution:
Description:
============
The following SOAP fault is seen when attempting to query a record with one of the attributes set to HTML string, e.g., &ltul> &ltli&gtHello</li> &ltli&gtWorld</li></ul>

&ltsoapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   &ltsoapenv:Body>
      &ltsoapenv:Fault>
         &ltfaultcode&gtsoapenv:Server</faultcode>
         &ltfaultstring&gtcom.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '&' (code 38) excepted space, or '>' or "/>"
at [row,col {unknown-source}]: [17,84]</faultstring>
         &ltdetail/>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>

Environment:
===========
TIBCO Product name and version: TIBCO Collaborative Information Manager 8.0.1
Operating System(s): All Operating Systems

Symptoms:
========
The SOAP fault indicated above should be seen when querying a record with one or more of it's attributes set to HTML text.

Cause:
=====
This is a parsing error as the parser does not expect the HTML tags in the attribute values.

Resolution:
=========

Use HTML encoded text instead of HTML for the attribute value.  For example, instead of:

&ltul> &ltli&gtHello</li> &ltli&gtWorld</li></ul>

Use:

<ul> <li&gtHello</li><li&gtWorld</li></ul>

You can also try using the HTML encoder  @ http://www.opinionatedgeek.com/dotnet/tools/htmlencode/encode.aspx to encode the text.

Attachments:
===========
None.

References:
==========
None.

Issue/Introduction

HTML tags in any attribute causes the TIBCO Collaborative Information Manager Web service (Query) to return a SOAP fault.