|
Re: [Polarion] Connection between OSLC-Server and Consumer [message #1770201 is a reply to message #1769986] |
Wed, 09 August 2017 05:38 |
Jad El-khoury Messages: 61 Registered: August 2015 |
Member |
|
|
Hi
How are you deducing the values of the generated_key paramter before your call to helper.initOAuthClient("Lyo_App", generated_Key) ?
Just to be sure, you need to follow the instructions on https://jazz.net/wiki/bin/view/Main/RootServicesSpecAddendum2 to obtain a consumer key. Namely,
you need to first POST some content to the jfs:oauthRequestConsumerKeyUrl uri, such as
* {
* "name": "some consumer name",
* "secretType": "string",
* "secret": "some secret",
* "trusted": "false",
* "userId": "admin_user_id"
* }
this will give you some key value (example {"key":"631f0101-d1d1-4f56-a3d9-68b4e2be3078"}, which you can then insert as a value in your code!
I also noticed that you are calling new JazzRootServicesHelper(webContextUrl, OSLCConstants.OSLC_RM_V2).
This might work. But what worked for me for sure is OSLCConstants.OSLC_CM
|
|
|
|
|
Re: [Polarion] Connection between OSLC-Server and Consumer [message #1770432 is a reply to message #1770204] |
Fri, 11 August 2017 09:19 |
JRM FLN Messages: 3 Registered: August 2017 |
Junior Member |
|
|
Hello Jad,
thank you very much for the information. We were now able to establish a connection to the OSLC-Server of Polarion.
Though, as you already commented, we are not able to get, edit and create requirements (yet), since currently only UIs are provided. I also asked the Polarion Support Team whether/how the oslc:CreationFactory and oslc:QueryCapabilities could be activated on the Polarion-OSLC-Server. This is their reply:
We consulted your question here and we received the following info for you:
Polarion does not support Creation Factories and Query Capabilities as of now.
The next Polarion release 17.2 will have a very basic implementation of creation factories but not a full implementation.
Furthermore, refering to your comment on the OSLC.Constants.CM/RM topic:
When browsing h t t p://[...]/polarion/oslc/rootservices, our Polarion-OSLC-Server only provided a <oslc_cm:cmServiceProviders rdf:resource="http://[...]/polarion/oslc/services/catalog"/> but no rmServiceProvider. To activate the rmServiceProvider, it is necessary to enable it in the polarion.properties of the server-configuration (it is disabled by default), by adding the following line:
com.siemens.polarion.oslc.rmProvider.enabled=true
|
|
|
|
Powered by
FUDForum. Page generated in 0.03395 seconds