It's all about the answers!

Ask a question

Problem with OSLC link of changeset to ClearQuest with RTC Embedded Visual Studio client

Danny Beerens (801827) | asked Apr 29 '14, 9:56 a.m.
  • ClearQuest v7.1.2.6
  • OSLC v1.2
  • Visual Studio 2012
  • RTC Embedded VS Client 4.0.5
  • Win7
  • links used for friends relations: ClearQuest: https://<clearquest webserver>/cqweb/oslc/repo/<database name>/discovery, not trusted
  • links used for friends relations: RTC: https://<rtc web server>/ccm/rootservices, not trusted
  • Self signed CCL certificates (we're using a sandbox environment. Our production servers have proper SSL certificates)
The problem:
In the "Pending Changes"-view in VS, you can link a changeset with Related Artifacts --> Associate Change Request... The dialog to select the ClearQuest schema.database and the option to create a new, or select an existing Change Request is presented. When we click [ OK ] we get the error message: CRRTC8500E: Server Error: running operation.
(Also in VS) When we try to link a Work Item with Links-tab --> Add --> Related Change Request. The dialog to select the ClearQuest schema.database and the option to create a new, or select an existing Change Request is presented. When we click [ OK ] we get the error message: CRRTC8500E: Server Error: Problems acquiring the remote service document: The URI "http://<clearquest webserver>/cqweb/oslc/repo/<database name>/db/<schema name>" cannot be the target of a request, as it is not a trusted friend.

Our questions
While we only used https references, all of a sudden ClearQuest web is being accessed using http.
  1. Why does it do that?
  2. Is there a configuration file we've missed? 
  3. Where can we find it?
  4. Is there a TechNote explaining these settings?

One answer

permanent link
Carlos Ferreira (91123) | answered Apr 29 '14, 12:51 p.m.
Hi Danny,   It has been a while since my CQ days, however I think you might progress further breaking down the problem further. To diagnose the problem further and get to your answer do the following:
1.  Ensure you have network connectivity from the client where you have VS installed and server where CQ Web located. You should be able to ping the server from the client machine.
2.  Ensure you can open a CQWeb page in the browser on the client machine to the CQ Web Server using the same URLs you indicate above.  If you can't you need to trouble shoot that problem before involving the VS client. For example your HTTPS SSL Keys...
3.  You need to make sure your servers for CQWeb and RTC are Oauth friends.   Establish OAuth friend relationships between the RTC JTS server and CQ servers. These friend relationships allow JTS servers to authenticate and communicate with each other and other server. This enables provide the OSLC artifact preview capabilities. You should clearly document the required JTS friend relationships and in what direction the requests will be made. For the JTS being administrated, what requests for information being received are "inbound" from other servers, versus requests for information being made "outbound" to other servers. For example for the OSLC artifact previews to work in RTC,  the tool that owns the linked object has CQ has to be registered as an Outbound friend on the JTS server RTC is installed on. If you get an error message "Unknown Provider" with the OSLC previews, this means the artifact's JTS is not registered as a friend. If you get a permission errors check also that you have assigned Client Access Licenses to each user for the each of the products being accessed by the user.

Here is a link to a doc that might help.

4. Once you have that working then debug the Visual Studio problem separately. 

Hope this helps.

Danny Beerens commented Apr 30 '14, 7:35 a.m.

 Hi Carlos,

Done all that, and checked it.
When changing the settings in VS to use External Webbrowser, Work Item linking to ClearQuest records work from VS. Linking changeset to ClearQuest records from VS, still doesn't work.


Danny Beerens commented Apr 30 '14, 7:36 a.m.

 The functionality to create a link a changeset to a ClearQuest record works from the RTC Eclipse client. It doesn't work from the RTC Embedded Visual Studio client. Removing a ClearQuest link from a changeset in VS works as well.

Danny Beerens commented Apr 30 '14, 7:37 a.m.

 Looking at the trace-logfile:

04-30-2014 13:24:13 FilesystemUILibrary: Error executing, status code: BadRequest

Danny Beerens commented Apr 30 '14, 7:38 a.m.

 If I copy+past the mentioned URL ( into FireFox (Debugger mode), the webpage replies:

Error 403: The request to https://<clearquest webserver>/oslc/repo/<database>/db/PMSlc is blocked due to possible CSRF usage.

Danny Beerens commented Apr 30 '14, 7:39 a.m.

 Only using the later part of the URL (thus: works fine. I'm asked to log in, and the XML page opens.

Danny Beerens commented Apr 30 '14, 7:41 a.m.

 imho the login dialog is what I expected to get, as I do when linking Work Items to ClearQuest records from VS. Instead I get an error message, when I do this for changesets.

showing 5 of 6 show 1 more comments

Your answer

Register or to post your answer.