OSLC access to ressources, how to ?
6 answers
Comments
Hi Louis,
Thanks for your mail.I have done the hierarchy based on the URN , using which i am able to find the FOLDERS, PROJECT , MODULE ....
What i am also looking for is the hierarchy within Object and its child elements, for example:
Lets assume, i have a module which has the following objects :
-
My Requirement 1.1 My Sub-Requirement 1.2 My Other Sub-Requirement
-
My Other requirement
In the above case, i am not getting the Objects within the module in proper hierarchy through OSLC.
Please let know on this.
Regds Rahul Chandrashekar,
Good question. I did not need such a hierarchy in my project but from what I understand the classic DOORS client deduces this hierarchy only by reading/creating the system attribute called "object number". For example if you create a requirement numbered "1" in a module, right-click on it an then click "object below", it will create a requirement numbered "1.1". I think reading this attribute is the only way to store/retrieve this hierarchy so your OSLC-RM client should read this attribute in each requirement it fetches so you know where to put it in your data model.
I don't really see another solution, I would go for this first. Let us know if you do this and if it works, I think it should.
Best regards, Louis M
Hi,
The above hierarchy was already done. I was more interested on the hierarchy for the Objects, and i was looking into different blogs for the same...
Kindly let know if you have any other work around solutions :-)
Regds Rahul Chandrashekar,
Hi
One more point, when i get the requirement objects, i dont get the i.d
like : 1 .. 1.1..
Regds Rahul
1 vote
Good point, I don't remember seeing them in the xml. I'll have a look tomorrow to see if I find another idea.
1 vote
Thanks Louis, it will be so helpful of you if you help me out.
Apart from this i had found one more thing
I also came to know that there is an another work-around for the same using Delegate UI search, in which we can get the Modules / Requirements in Hierarchy, Please refer to the below URL.
http://open-services.net/bin/view/Main/OslcCoreSpecification?sortcol=table;up=#Delegated_User_Interface_Dialogs
On executing the URL with Post message protocol, we are able to get the requested requirements and when we select the requirement it give us a table which contains the id and the requirement label, in this page there are 2 button options are available (Ok and Cancel
When we select Ok, it seems OSLC should respond with a message . but we are not able to get this message on our application. We are currently use SWT BROWSER widget to load the above
kindly let us know how can we proceed on the same.
Rahul, Sadly it seems like you have reached the border of my knowledge. i am working in C# therefore I cannot help you with this Java widget. I am waiting for some information regarding the hierarchy, I will post it here if i get it. Are you sure the hierarchy you get in your workaround is the one you are looking for and not just the number given at the beginning of the attribute "short title" ? Because if your workaround uses OSLC resources I don't understand how this is possible since the hierarchy order is not in the xml resource.
Dear Louis,
For time being lets seperate the technology we are working.
When i do an OSLC query i get the requirements with id
for example:
-
My Requirement
-
My Sub-Requirement
-
My Other requirement..
But in Hierarchy the same is defined like this:
1 My Requirement
1.1 My Sub-Requirement
- My Other requirement
And i was interested in the second tree structure, but i am ending up in the first tree structure. Even i tried to have an exhaustive look into the xml-rdf file but i am not able to find any relationship on the same. Maybe there should some attribute tag in the xml file which probably links to the requirements to get the hierarchy.
Best Regds Rahul Chandrashekar.
The other day I was wondering if this logic was not inside the number at the end of each URN... I did not look into it further but try maybe to see if th URNs reflect this tree hierarchy
Dear Rahul, I have got news directly form IBM. They said it is not possible to track this information yet. You will need to find your own workaround for this. Sorry for the bad news !
Hi,
Eureka......we are now able to get the Hierarchy information using the Delegated UI Search mechanism. This works. But i have a problem i have to refresh or provide my authentication details everytime i do some operation.
Is there any way how i maintain a session, so that i need not have to keep on providing the user and password details.
Regds Rahul.
Comments
I see two major and obvious security problems : - Your application will know your credentials to connect to the database. OAuth is used to prevent your custom application to know them and should only be registered as an OAuth consumer in DOORS. If your application falls into the wrong hands, anybody can access your database. It means you went from a protocol who helps you secure your credentials to badly using the protocol and almost giving away your credentials. Any tool vendor should refuse an application which is not using OAuth properly. - Another security problem is that your credentials will not be encrypted when you are passing them like this to the server by a REST POST.
If you still want/manage to do this, at least use an SSL connection with port number 8443. The SSL connection can be forced in the festival.xml file.
Hi Louis,
Thanks for your feedback. We are now able to connect to DOORS via OSLC, but we have an issue, the modules are not coming based on an hierarchy.
Kindly let us know for any queries which will help on the same
Regds Rahul Chandrashekar
hi, I was trying to get catalog using this link :http://doorswebserver:8080/dwa/rm/discovery/catalog but, the unauthorized error occurred in rest client , can anyone help me how to access catalog using oauth....any oslc java code sample?
Dear Rahul and Sudeshna, please see my answer below.