OSLC + JAVA (Eclipse Lyo) : Getting forbidden (403) exception while add/Update requirement using JazzFormAuthClient

I am able to add requirement and requirementCollection seperately ,
but when I am trying to add Uses in requirementCollection
i.e.
collection.addUses(new URI(requiremtnURL));

It i giving me 403 exception.

Also I am getting same exception while adding requirements if I am adding -

requirement.addValidatedBy(new Link(new URI("http://outlook.com"), "Link in REQ03"));

means wherever I am using URIs it is giving me exception as 403 - forbidden.

Note: I have create DNG server locally (https//localhost:9443)

How should I proceed to resolve this issue.

Thanks !

Note: this is a crosspost from OSLC + JAVA (Eclipse Lyo) : Getting forbidden (403) exception while add/Update requirement using JazzFormAuthClient - Jazz Forum. Please indicate crossposting in the future.

Shriram,

Most likely either Lyo forms a wrong request or the app needs more information (most likely is authentication, you will need to ask on Jazz forums if the problem is auth-related). You will need to figure out which of the two is it. I have two suggestions for you:

  1. Increase the logging level for org.apache.http and try to reproduce the problem with Postman or Insomnia, for example.
  2. Install GoReplay - test your system with real data in front of the DNG and collect the exact requests and responses.

Cheers,
Andrew