Why PermissionDeniedException while programatically adding file to the stream using change set
Hi,
I had written server side follow up action to add the file in the stream and associate it to the work item.
while creating the change set it gives the below exception -
com.ibm.team.repository.common.PermissionDeniedException: CRRTC5039E.
I tried below ways to resolve the exception :
1. Check all the permission of component.
2. Check scope of component
3. Permission for the source control.
Also the stream/components created by the Jazz Admin user.
But the issue has been same.
I refer logic from : https://www.ibm.com/developerworks/community/blogs/extendingrtc/entry/Reading_and_Writing_Files_Directly_from_and_to_an_RTC_SCM_Stream_Server_Side?lang=en
Exception is at :
IChangeSetHandle cs = scmService.createChangeSetForStream(targetWorkspace,targetComponent, "Changeset Comment - File content updated", param, IScmService.DELTA_PER_INVOCATION, null);
Can anybody have an idea about this exception.
Thanks in Advance.
|
One answer
Ralph Schoon (63.7k●3●36●47)
| answered Nov 01 '17, 5:00 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Consider: How should I ask a question in the Forum if I want to receive useful answers
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
I am facing same problem how did the problem got solved? and i have given permissions to user
Please create your own question. As you can see, here is no answer and it is very likely that your problem is in no way related to this seven year old question.