How to get access to requirements from DOORS NG?
Hello,
I have a problem to get requirements from DOORS NG with OSLC.
I'm developing an application where I send HttpRequests to navigate through the tree (Service catalogue -> Service provider -> Service -> Selection ui). After selecting a requirement in selection ui I pressed OK and instead of getting any useful response an error occurs: "Failed to load resource: the server responded with a status of 401 (Unauthorized)".
I also tried to use the query capability to get these requirements of a specific folder but I also get an error: "500 internal server error".
So, I am a little bit confused. Someone told me it might be the user rights.
Could you please help me?
Thanks in advance.
3 answers
Chris,
401 is HTTP Unauthroized. If you are able to access DNG's service provider catalog, then you have already authenticated with the server. But does the ID your client is using have access to the project area containing the resources? You'd need to be a member of the project area.
You may also find eclipse/Lyo Java client helpful if you are using Java.
Comments
Hi Chris
CRRRW7283E means that the artifact wasn't found.
Did you specify the configuration for the project/component that you are working with, i.e. the oslc_config.context parameter for the request?
What I often do is using a (Chrome) plugin as Postman to do custom HTTP request, using the auth cookies set by the browser. So you can set the OSLC headers and params and see what comes back, and then work back to your code, independent if it's java or C#.
Comments
Hello Chris.
I know that it's being a long time, but now I am also trying to communicate to DoorsNG from C#. I also encounter the exception 401, and making test with Postman I've noticed that the only way to get the authentication is by receiving a cookie after a 401 http failed response. Do you know some new information about it?
Thanks in advance.