It's all about the answers!

Ask a question

Why PermissionDeniedException while programatically adding file to the stream using change set


Anurag Patel (2114) | asked Oct 27 '17, 12:51 a.m.
edited Oct 27 '17, 12:51 a.m.

 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.

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



permanent link
Ralph Schoon (58.0k23642) | 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

Dependent on where you try to deliver, it might be impossible to do so in a follow up action.
The permission a follow up action runs in is based on the context of the user that triggered the execution (the current user).

Your answer


Register or to post your answer.