It's all about the answers!

Ask a question

Handling special characters in OSLC REST call


Aparna Mullapudi (111) | asked Mar 05 '12, 3:21 a.m.
Hi All,

Below are the details, regarding the issue that we are facing while querying for Component in a specific case(where Module=C++) i.e. when special characters are present in the OSLC REST CALL

The sample format of query we are using to query Component is as below
http://psccqweb123.bedford.progress.com/cqweb/oslc/repo/PSCDEVV/db/PSCT/record/?rcm.type=Component&oslc_cm.query=Product="Actional Interceptors" and Module="Java"&oslc_cm.properties=Component

But, when I use the same query to get the Component when Module is C++ , as below
http://psccqweb123.bedford.progress.com/cqweb/oslc/repo/PSCDEVV/db/PSCT/record/?rcm.type=Component&oslc_cm.query=Product="Actional Interceptors" and Module="C++"&oslc_cm.properties=Component
nothing is returned because of http URL encoding, + is treated as space and the Component with C is not available in the CQ database.

So, I replaced + with %2B i.e. as below and tried to query the database
http://psccqweb123.bedford.progress.com/cqweb/oslc/repo/PSCDEVV/db/PSCT/record/?rcm.type=Component&oslc_cm.query=Product="Actional Interceptors" and Module="C%2B%2B"&oslc_cm.properties=Component
here in this case, though I see that http is identifying it as C++, nothing is returned from CQ.

Any ideas on how to resolve the issue?

Thank you.

Be the first one to answer this question!


Register or 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.