Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic SYNERGY (steve huntington)
Decrease font size
Increase font size
Topic Title: if problem_description contains XML reserved chars i.e. "<" or ">" then can not be changed via API because not escaped!
Topic Summary: if problem_description contains XML reserved chars i.e. "<" or ">" then can not be changed via API because not escaped!
Created On: 17-Nov-2006 14:56
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 17-Nov-2006 14:56
User is offline View Users Profile Print this message


Coman Wakefield

Posts: 18
Joined: 1-Jun-2005

I've noticed that when after GetCRData and then attempting to change a problem_description the API call fails.

I've called $crData->getXmlData() and have had a look at the XML.

The problem descrption contains XML reserved characters such as "<" and ">" that the user has entered in to the body of the description. When the API seriazlies the description in to XML these values are left as is, meaning the XML is not well formed.

This causes a "could not LoadXML" api error.

The user can obviously enter any characters they want when raising a CR. Is this a deficiency of the API?

I've noticed there is a setXMLEncodedValue  API call as well as setValue - should I be using this instead of setValue whenever I update a field? Why is there two calls? shouldn't setValue just do what setXMLEncodedValue does?

Report this to a Moderator Report this to a Moderator
 22-Dec-2006 10:15
User is offline View Users Profile Print this message


Ronen Ben-Chamo

Posts: 84
Joined: 1-Dec-2005

I was the same problem,  while description field try to call SubmitCR , I got "could not Load XML"
I don't femiliar with setXMLEncodedValue , i will check it
I've replaced all chare such as '<' ,'>', '&', '"' with other charecters that are ligal, then the api works fine

Ronen

-------------------------
Ronen Ben-Chamo
Configuration Managment
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic SYNERGY forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 15:34.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.