Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How do I create a Requirement with characters like angle brackets in the title using the OSLC creation factory?

Hi,

I am trying to create a requirement in DNG 5.0.2 using the OSLC creation factory. The title of the requirement contains the characters '<' and '>' and this is obviously not allowed in RDF XML, and I get a 403 Forbidden error.

However, if I convert these characters to &lt; and &gt; then the requirement gets created, but the title contains the actual characters &lt; and &gt; and not the < and >.

If I update the title using the DNG web interface, and then look at the audit history, it appears that the OSLC created version encodes the '&' part of &lt; so my RDF XML becomes: &amp;lt; when using the OSLC factory.
Audit history showing incorrect encoding of <

Is there any way of properly encoding the '<' and '>' characters when creating using the OSLC factory?
Other than editting and correcting them after creation?

Regards,
Sudheer

0 votes



2 answers

Permanent link
I suggest you open a ticket with Support if you have to do it this way, as there seems to be no way to pass the angle brackets as is when using OSLC.
If you just put the right angle bracket in the title, you will notice that it does not get preserved, and gets escaped to "& gt;" instead.

0 votes


Permanent link
Hi

Ok so I've managed to find a solution - by using the Eclipse Lyo client to create the requirement.
This has preserved the angle brackets (not entirely sure how though!)

Regards,
Sudheer

0 votes

Comments

 Lyo uses Apache Wink to support its client API. I suspect that Wink is making the proper conversions in the XML to handle special characters. Wink handles a number of different data formats and seems to make these kinds of text conversions transparent.


- Jim Ruehlin

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938
× 139

Question asked: Jul 26 '15, 1:23 p.m.

Question was seen: 3,838 times

Last updated: Jul 28 '15, 8:58 p.m.

Confirmation Cancel Confirm